Last post Aug 21, 2017 05:51 AM by Cathy Zou
Aug 18, 2017 06:26 AM|Hermy|LINK
Is it possible to add icons on every items of a listBox?
Aug 18, 2017 06:54 AM|Kelmen|LINK
try listview, u have more flexibility, including "add icons on every items"
Aug 21, 2017 05:51 AM|Cathy Zou|LINK
As kelmen suggested, Don't use a listbox use a listview instead. You'll need to set the View property to List in order to get the listview to look like a tradition listbox.
The listview control contains a collection listview items, and each listviewitem contains a collection of subitems. For each listviewitem you'll want two subitems, one for the image and one for the text.
Think of a listviewitem as a row and the subitems as columns of the row.