Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ImageList Control

Status
Not open for further replies.

DavidGarlett

Technical User
Jun 19, 2002
3
US
This will probably be the easiest question ever answered here. At least I'm hoping. I'm still fairly new to this all.

I need to make a ListImages collection so that I might display several images from the same spot. soo...I read and it says start with the ListImages control.

My problem is that I have no ListImages control in my Control Selection area.

Please assist me with this. Where might a person find this control?

Thanks in advance,
David
 
Docs on ListImage (It is not a control but an object to be placed in a control).
"Remarks

The ListImages collection is a 1-based collection.

You can add and remove a ListImage at design time using the General tab of the ImageList Control Properties page, or at run time using the Add method for ListImage objects.

Each item in the collection can be accessed by its index or unique key. For example, to get a reference to the third ListImage object in a collection, use the following syntax:

Dim imgX As ListImage
' Reference by index number.
Set imgX = ImageList.ListImages(3)
' Or reference by unique key.
Set imgX = ImageList1.ListImages("third") ' Assuming Key is "third."
' Or use Item method.
Set imgX = ImageList1.ListImages.Item(3)

Each ListImage object has a corresponding mask that is generated automatically using the MaskColor property. This mask is not used directly, but is applied to the original bitmap in graphical operations such as the Overlay and Draw methods." Generate Forms/Controls Resizing/Tabbing Class
Compare Code (Text)
Generate Sort Class in VB or VBScript
 
Thank you very much for the prompt reply. It's appreciated.

I'm still not certain I'm understanding this correctly.

I think I've got the concept of what's being done with the ImageList.

What I don't have is the ImageList control icon in the control toolbox (so that I can actually draw the imagelist onto a form).

The book I'm learning from has the ImageList Control icon in the Control Toolbox, but it's not the same in mine. I'm using VB6, too.

It's confusing.

Sorry if I'm being naive here. I do appreciate the help.

 
HAHA!! =)

Excellent and Thank you.


That was exactly it. I very much appreciate the help.


Thank you very much.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top