I give up on VB.NET
Google Search: DefaultValue Attribute VB.NET
It really IS the bastard stepchild of .NET. It’s just so much easier to code in C# than it is in VB.NET.
I’m writing a custom web control. I have a property called “TabItems” which is an ArrayList holding, TabItem classes. I want to set a Default Value. How do I do that? The only example I can find in the MSDN docs uses a boolean property and sets it like so.
<defaultvalue (False)> _
Public Property MyProperty() As Boolean
yeah, duh no kidding. The only other examples I can find use string properties and set the DefaultValue to “”. DUH. What about an actual type?
I’m going back to C# now, let somebody else play in the shallow muddy end of the .NET pool with VB.
edited because I forgot that WordPress doesn’t URLencode the posts
-
http://www.xtras.net Mike Schinkel
-
http://www.xtras.net Mike Schinkel
-
http://www.lazycoder.com Scott
-
http://www.xtras.net Mike Schinkel
-
Jim
-
http://www.irritatedVowel.com Pete Brown
-
http://www.mini-tools.com Mini-Tools Timm
-
fake rolex watches


