is it possible to put a little image to the right of text of items in a listbox?? like the directory listbox in vb6 had folder images
Printable View
is it possible to put a little image to the right of text of items in a listbox?? like the directory listbox in vb6 had folder images
I don't know about a listbox. But you can with a ListView or a TreeView. Using the Imagelist Class.
The standard ListBox doesn't support that feature. You can use a ListView as suggested, or you can owner-draw the ListBox and add the image for each item yourself. I've seen examples of third-party ComboBoxes that do just that. There are probably ListBox examples around too, but if not the code would be almost identical to the ComboBox anyway. If you're interested I look at The Code Project first.