I'd like to be able to show an icon in one column of the listview control when it's .View property is set to lvwReport i.e Report View.
If this is possible and anyone knows how to do it, i'd like to know thw solution.
Thanks
Printable View
I'd like to be able to show an icon in one column of the listview control when it's .View property is set to lvwReport i.e Report View.
If this is possible and anyone knows how to do it, i'd like to know thw solution.
Thanks
1. Create an ImageList containing the icons you require and put names in the "key" field
2. Go into the properties of the ListView and for ImageLists set this ImageList for both large and small (you can do different lists if you want different sizes)
3. When adding items to the listview simply use the "key" that matches the icon you want to display
Code:ListView1.ListItems.Add ,"Item Text", "LrgIconKey","SmlIconKey"
Thanks Gen-X for the help.
Only i disovered that in the reportview the icon used from the LargeIcon ImageList is not displayed which is what i had been trying all this while. But the one from the smallicon imagelist is displayed.
So thanks all the same.