|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Windows Thumbnail ControlI 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 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 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 > > 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 >>
Windows vb.net Datagrid
MDI Child Wrong Event Firing Regular Expressions Problem Waitable Timers in VB.NET Failure Sending Mail exception with VS 2005 Microsoft VBScript compilation error '800a0400' Where did this come from: Microsoft\CStoVBConverter\Samples\Smart Client\ Control modifiers Help me to Query,navigate and modify a dataset Easiest way to create Help Doc |
|||||||||||||||||||||||