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.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only