Photos in listview

  • Thread starter Thread starter Anders Matthiessen
  • Start date Start date
A

Anders Matthiessen

Hey Group

I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

/Anders
 
Easily,

Draw them yourself.

How?

Well, in a listbox you would define the DrawItem Method. and set to Owner
drawn fixed or owner drawn variable in the properties window.

In there you would get the bound for each item in the e paramter
e.bounds and using e.graphics.drawimage you could draw it.

If you want each image of varying size then you will need to do MeasureItem
method and tell VB the size for each item and then in DrawItem draw it.

I think the Listview is similar---don't have VB.NET open now....

HTH,

Shane
 
* Anders Matthiessen said:
I have to list a few photos (thumbnails), in a ListView (or other
control?).. How can i do that ? Any free controls to use or any way to
modify the listview ?

Add the thumbnails to an imagelist and use a listview control.
 
Back
Top