Images in Listview

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

i have a Listview and an ImageList. I set the SmallImageList Property to the imagelist and the images are displayed.

But, how can i define which line in the Listview gets which image of the imagelist.

The images being displayed doesn't seem to have any order.

Can anybody help??
 
The list view items have an image index value that specifies which of the
imagelist entries are displayed.

--
Bob Powell [MVP]
Visual C#, System.Drawing

The Image Transition Library wraps up and LED style instrumentation is
available in the June of Well Formed for C# or VB programmers
http://www.bobpowell.net/currentissue.htm

Answer those GDI+ questions with the GDI+ FAQ
http://www.bobpowell.net/gdiplus_faq.htm

The GDI+ FAQ RSS feed: http://www.bobpowell.net/faqfeed.xml
Windows Forms Tips and Tricks RSS: http://www.bobpowell.net/tipstricks.xml
Bob's Blog: http://bobpowelldotnet.blogspot.com/atom.xml






Thorsten moeller said:
Hi,

i have a Listview and an ImageList. I set the SmallImageList Property to
the imagelist and the images are displayed.
 
Back
Top