Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefaultValue for Tab Control ItemSize
Message
De
11/10/2005 11:17:30
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Divers
Thread ID:
01057791
Message ID:
01057965
Vues:
16
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform