VB6 ListBox with images

User avatar
Abraxus
3StarLounger
Posts: 254
Joined: 01 Mar 2010, 17:34
Location: Blue Springs, MO

VB6 ListBox with images

Post by Abraxus »

I'm trying to resurrect an old VB6 app that I wrote many years ago, but am running into a small problem.

There was a list box in the app that had images in it. It looked like this:

Image

Items were added to it with code like this:

Code: Select all

List1.AddItem TextToShow,<something optional> , PictureToShow, PictureToShow
Not sure why it had the PictureToShow twice...

Anyone know what control that might be? I'd REALLY like to get this guy going again.

Thanks!
Morgan

User avatar
HansV
Administrator
Posts: 78568
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: VB6 ListBox with images

Post by HansV »

It looks like this is a non-standard control. The only standard VB6 control that I know of that lets you specify two images is the TreeView control: a node in a treeview can have a different picture depending on whether the node is selected or not (for example a closed folder or an open folder).
Best wishes,
Hans