Windows Thumbnail Control

  • Thread starter Thread starter Dustin Davis
  • Start date Start date
D

Dustin Davis

I need to have a thumbnail control on a windows form. I've tried a few
activex thumbnail utilities. The best I have used so far is this one:
http://viscomsoft.com/products/imagethumbnailcp/

The problem though is that the refresh is really slow. Has anyone had
experience in writing their own thumbnail control or found any other
useful activex controls that can by used in vb.net 2005?

Thanks!
Dustin
 
Dustin, can't you just use

Dim bmpThumb As New Bitmap("yourfilename.jpg")
bmpThumb.GetThumbnailImage()

to get thumbnails?

Then just show them? Why would you need or want a control? Seems like a
lot of overhead. What do you want to display the thumbnails in a ListView?

If so, why not do the above for all image files in a directory, add them to
an ImageList control, attached to the listview and show them that way?

HTH,

Shane
 
sounds like it could work. Can you tell me how to add the bitmap to the
listview?

Thanks,
Dustin
 
Something like this should work.

Dim lvw As New ListView
Dim iml As New ImageList


lvw.BeginUpdate()

'do this again and again for each item; in some loop
iml.Images.Add(New Bitmap("c:\mybmp.bmp"))
lvw.Items.Add(New ListViewItem("Some Item", 0))

lvw.EndUpdate()

lvw.refresh? maybe

HTH,



Shane
 
Back
Top