Does anybody use the Tag property of controls & forms? If so, what for?
Printable View
Does anybody use the Tag property of controls & forms? If so, what for?
Tags are used for tooltips mainly
@Megalith - They are? That's news to me. I've always used a ToolTip control for that... which them gives all of my controls a ToolTip property.
@nbrege - different things. I've used them to hold binding information. I've used them to hold IDs for objects, that's part of the beauty of the Tag property, they're sort of a kitchen sink property, use it for what ever you need to. At least with .NET the Tahg property became an Object type. Previously they were typed as string, which made them somewhat limited.
-tg
tg - OK, I was just wondering what its originally intended purpose was & if I was mis-using it. I use it for various things too like storing "hidden" data, passing data to others forms, etc., but don't know if those are proper uses or not.
lol i think they were in VB6 :p but was first thing on the top of my head