'Tag' for each items of a combobox

Iuliana

Newcomer
Joined
Dec 23, 2003
Messages
1
Location
Roumania
Hi!
I want to know how can i create a 'tag' for each item of a combobox.
The code will be something like this:
combobox1.Items.Item (0).tag="xxxxx"

I know that i must create a new combobox class with new property, but i dont know how to do it.

Thanks!
 
Go do a search for sub-classing at http://www.planetsourcecode.com
or you could just create a class and do a public overides function to string() in your class.
Which is a hell of a lot better then subclassing it. Because then you can store a lot more then a tag property to that object if you need to. Also much easier.:D
 
Back
Top