Windows Thumbnail Control

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
 
S

SStory

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
 
D

Dustin Davis

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

Thanks,
Dustin
 
S

SStory

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top