What does tag property for a control specify in VB?
tag property
Collapse
X
-
The funny thing is, the Tag property doesn't mean anything to VB. It's just sort of an extra "dummy" property where you can throw any information that you want to store with the control.Originally posted by NEHUWhat does tag property for a control specify in VB?
You can use it to represent some sort of "custom property" if you like. For example, I had a program where I wanted to have some things on a form flashing, or blinking (like we used to have on the DOS text screen). I stored a value in the Tag property to identify those controls that I wanted to flash. And set up a timer to check all the controls on the form, and flash the ones which had that value in their Tag.Comment
-
In VB6 and VBA, the Tag property is a string; but in VB.NET, it is an object, so you can easily store lots. For example, when I dynamically add controls to a form at run time, I read a configuration file into a custom info object. Then I use some of that object's properties to initialize the control. And I also put the Info object into the Tag property.Comment
-
what the heck is "VBA" ???? and what does VB 8 (2005) call it's "tag property"Originally posted by SammyBIn VB6 and VBA, the Tag property is a string; but in VB.NET, it is an object, so you can easily store lots. For example, when I dynamically add controls to a form at run time, I read a configuration file into a custom info object. Then I use some of that object's properties to initialize the control. And I also put the Info object into the Tag property.
PS is VB 2005 the same thing as VB.net ???Comment
-
VBA is Visual Basic for Applications. It's the "scripting" language built into products like Excel, Word and Access. It seems to be pretty much VB without the compiler to create EXEs.Originally posted by sgrec7what the heck is "VBA" ???? and what does VB 8 (2005) call it's "tag property"
PS is VB 2005 the same thing as VB.net ???
No idea about what Tag is called in VB 2005.
As for the versions, see this link - it should answer all questions.Comment
-
Since there is very little difference between VB 2005 & VB 2003 and they both use the .NET framework, they are refered to as VB.NET. The tag property is called Tag :D and is usually on every control and also sometimes on pieces of a control; for example, the TreeView control has a Tag property for each node, so if you are displaying a drive in a tree view, you can stash the Directory or File object for each node in the Tag property.Originally posted by sgrec7what the heck is "VBA" ???? and what does VB 8 (2005) call it's "tag property"
PS is VB 2005 the same thing as VB.net ???Comment
Comment