Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ImageList in VB.NET - Require VB6 Equivalent
 

ImageList in VB.NET - Require VB6 Equivalent

I've started using VB.NET and I'm porting a VB6 project. The problem I have is that the new Image list doesn't allow you to store a name or tag for each Image like VB6. This causes me an issue as I use a name to look up the Image I require. Is there an alternative ImageList I can use that can provide that facility.

Regards,

Anthony
MigrationUser 1  Sunday, January 09, 2005 2:23 PM
I don't understand why it won't let us store info in the tag. It's downright infuriating

tempstr = strRight(Name, Len(Name) - InStrRev(Name, "\"))
IML.Images(IML.Images.Count - 1).Tag = tempstr
MsgBox(IML.Images(IML.Images.Count - 1).Tag)

tempstr shows as having a value
the second line returns no errors
the messagebox ends up being blank

VB tells me we can get OR SET the tag, yet it won't.

My only solution at current is to make an array and store the info myself, which is annoying
Techni  Friday, September 11, 2009 9:57 AM

You can use google to search for other answers

Custom Search

More Threads

• IsInputKey
• Hide/Show Controls into the Panel
• Problem while clicking Buttons
• datagrid object list
• New build of control cannot deserialize the property of elder built?
• self created icons
• Focus on a row in the DataGridView
• Desginer TypeLoad Failure
• Difference between design-time and run-time execution
• Making a PointFConverter