|
-
Dec 14th, 2009, 10:53 AM
#1
Thread Starter
Frenzied Member
Using the Tag property
Does anybody use the Tag property of controls & forms? If so, what for?
-
Dec 14th, 2009, 11:06 AM
#2
Fanatic Member
Re: Using the Tag property
Tags are used for tooltips mainly
If debugging is the process of removing bugs, then programming must be the process of putting them in.
-
Dec 14th, 2009, 11:13 AM
#3
Re: Using the Tag property
@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
-
Dec 14th, 2009, 11:22 AM
#4
Thread Starter
Frenzied Member
Re: Using the Tag property
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.
-
Dec 14th, 2009, 11:40 AM
#5
Re: Using the Tag property
 Originally Posted by Megalith
Tags are used for tooltips mainly
Ummm... no
 Originally Posted by nbrege
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.
That's basically what it's used for, since the Tag property is an Object, you can store controls in it too, which I've used occasionally.
-
Dec 14th, 2009, 12:59 PM
#6
Fanatic Member
Re: Using the Tag property
lol i think they were in VB6 but was first thing on the top of my head
If debugging is the process of removing bugs, then programming must be the process of putting them in.
-
Dec 14th, 2009, 01:08 PM
#7
Re: Using the Tag property
 Originally Posted by Megalith
lol i think they were in VB6  but was first thing on the top of my head
vb1 through 4 maybe, but even then not in vb5 or 6 tooltips where handled by their own control back then too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|