Hi folks,
Consider a custom class that's being derived from the TextBox and has
got the following propert:
public override string Text
{
get { return "get"; }
set {base.Text = "set";}
}
This new control, say, myTextBox is placed on a form. In this
scenario, the textbox shows the "set" text while at the same time the
Text property in the properties panel of the visual studio says that
the text is equal to "get". The question is that what's happening on
the designer?
The second problem is that when some properties of the myTextBox
control is changed, say, the ScrollBars property and the like. As soon
as this property is changed (I guess those that ends up in refreshing
the control in designer), the text shown in the textbox will change to
"get".
Any help to solve the problem would be highly appreciated,
Cheers,
Mehdi