Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DefaultValue for Tab Control ItemSize
Message
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Miscellaneous
Thread ID:
01057791
Message ID:
01057965
Views:
12
Chris,

I am not a VB guy so here is some C# showing how to set the DefaultValue attribute for Size.
[DefaultValue(typeof(System.Drawing.Size), "100, 45")]
public Size TestSize
{
   get { return _testSize; }
   set
   {
      _testSize = value;
   }
}
When you go into the property grid you will see that the value is 0, 0 - however, when you right click and reset it will show as 100, 45.

HTH
Neil
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform