• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

use of sethumbnaillib with vb6

  • Thread starter Thread starter Valter Antognoni
  • Start date Start date

Valter Antognoni

Guest
hi, I am new and so apologize if maybe I make some mistake by posting here, I would need help to view the preview of a file if in a picturebox in an external application to if, use vb6 and not vbnet.
thanks in advance
 
Hello Valter,

I do not use vb6 anymore for years, in its time I used successfully sepreview.ocx inserted in a form of vb6. with st8 should still be available.


the library you indicated instead should return a bitmap directly; I never tried the code should be something like that (to be converted to vb6):
Code:
private sub showpreviewimage(byval pictureboxpreview as picturebox, byval fullpath as string)

    dim thumbnailextractor as new sethumbnaillib.sethumbnailextractor
    dim hbitmap as intptr

    thumbnailextractor.getthumbnail(fullpath, hbitmap)

    if (hbitmap <> intptr.zero) then

        pictureboxpreview.sizemode = pictureboxsizemode.zoom
        pictureboxpreview.waitonload = true
        pictureboxpreview.image = image.fromhbitmap(hbitmap)

    end if

end sub
Let me know if you did

france
 
hello francesco, thank you very much for the prompt answer, the code is .net but you made me discover sepreview.ocx, it's exactly what I've been looking for for for two days, I'm a self-taught and you see? ...
Thank you again!
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top