Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding icons to a sub item in a List View

Status
Not open for further replies.

Pipe2Path

Programmer
Aug 28, 2001
60
Hi all,

I would like to display an icon in the subitem of an list view. Does anyone know how to do this? In the control, there seems to be a way of assigning an icon to the ColumnHeader, but that doesn't seem to work.

Do you know?
 
From (often faulty) memory: you need to use an ImageList control to store the icons and link it to your ListView at design time. It gets annoying when you add images to the ImageList, because you have to decouple the ListView to do it, then relink and reassign the icons. So make sure you've got everything you need in the ImageList before you start.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top