Home All Groups Group Topic Archive Search About

Windows Thumbnail Control

Author
20 Mar 2006 5:36 PM
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

Author
20 Mar 2006 8:37 PM
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

Show quoteHide quote
"Dustin Davis" <dustin.da***@gmail.com> wrote in message
news:umtgoaETGHA.4952@TK2MSFTNGP09.phx.gbl...
>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
Author
27 Mar 2006 6:45 PM
Dustin Davis
sounds like it could work. Can you tell me how to add the bitmap to the
listview?

Thanks,
Dustin

SStory wrote:
Show quoteHide quote
> 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
>
> "Dustin Davis" <dustin.da***@gmail.com> wrote in message
> news:umtgoaETGHA.4952@TK2MSFTNGP09.phx.gbl...
>> 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
>
>
Author
28 Mar 2006 10:15 PM
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

Show quoteHide quote
"Dustin Davis" <dustin.da***@gmail.com> wrote in message
news:OiYzq6cUGHA.4892@TK2MSFTNGP10.phx.gbl...
> sounds like it could work. Can you tell me how to add the bitmap to the
> listview?
>
> Thanks,
> Dustin
>
> SStory wrote:
>> 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
>>
>> "Dustin Davis" <dustin.da***@gmail.com> wrote in message
>> news:umtgoaETGHA.4952@TK2MSFTNGP09.phx.gbl...
>>> 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
>>