Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DefaultValue
Message
De
20/02/2003 18:00:23
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
DefaultValue
Divers
Thread ID:
00755843
Message ID:
00755843
Vues:
32
I made a window control that inherit a TextBox control, i shadow a property of the control and set a defaultvalue for the property, but whe i place an instance of the control the property does not set to the default, why?

the type of the property is an enum type, i wrote something like this

_
public shadow property MyProp () as MyEnum
get
return MyVar
end get
set(byval value as MyEnum)
MyVar = Value
end set
end property

the way i made it work was setting its property in the new event of the control class.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform