|
-
Jan 22nd, 2007, 05:30 PM
#1
Thread Starter
Addicted Member
[2005] insert image alongside text as item in listbox
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
-
Jan 22nd, 2007, 05:39 PM
#2
Addicted Member
Re: [2005] insert image alongside text as item in listbox
I don't know about a listbox. But you can with a ListView or a TreeView. Using the Imagelist Class.
-
Jan 22nd, 2007, 06:31 PM
#3
Re: [2005] insert image alongside text as item in listbox
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|