I'm inheriting a TextBox control, and I want it to have a default value for the Text property... I cant find an initialize event
should I override the text property and set a default value for it then? :rolleyes:
Printable View
I'm inheriting a TextBox control, and I want it to have a default value for the Text property... I cant find an initialize event
should I override the text property and set a default value for it then? :rolleyes:
The closest thing is the constructor just set the text property there or in the OnParentChange event.
Umm why did I not think of the new constructor?:pQuote:
Originally posted by Edneeis
The closest thing is the constructor just set the text property there or in the OnParentChange event.
thanks it worked, but what does the OnParentChanged event do? when is it fired
Controls have a parent property which links to the object they are seated on (i.e. a Form, Tab) and anytime this changes the event fires. Sometimes if you want the control to adjust to what its on this is a good event to use.