Martin,
| I was under the impression that dotnet controls didn't support the tag
| property - I take either I was wrong, or this has changed?
..NET Windows Forms have supported the Tag property on Control since version
1.0
| Am I really able to use a value type in an object property? I wasn't
| aware that dotnet supported autoboxing either...
Yes, .NET has always supported autoboxing. However you need to use CType or
DirectCast to "unbox" if you are using Option Strict On.
--
Hope this helps
Jay B. Harlow [MVP - Outlook]
..NET Application Architect, Enthusiast, & Evangelist
T.S. Bradley -
http://www.tsbradley.net
| (e-mail address removed) wrote in
| |
| > The Tag property is datatype of Object, which means it can be any
| > datatype. It's purpose is to allow you to store some information that
| > is related to the control it is a property of, and since it is an
| > Object, this information can be of any form, a boolean, a string, a
| > collection of anything, etc.
|
| I'm only just starting to read up on vb.net and c# - work is a vb6
| shop...
|
| I was under the impression that dotnet controls didn't support the tag
| property - I take either I was wrong, or this has changed?
|
| Am I really able to use a value type in an object property? I wasn't
| aware that dotnet supported autoboxing either...
|
| Martin.