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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement