Hi NG,
I have a WinForms User Control with a TextBox on it. Now I want to have the
possibility to set the TextBox`s Text in the Designer when drop in the
UserControl. So I have overwritten the Text Property of the UserControl:
[Browsable(true) ,
Category("Actio n")]
public override string Text
{
get
{
return this.ifxTextBox .Text;
}
set
{
this.ifxTextBox .Text = value;
this.Invalidate ();
}
}
It works fine in the Designer, but when compiling it the Text dissapeares!!!
Why?
Thank you for your help
Rudi
I have a WinForms User Control with a TextBox on it. Now I want to have the
possibility to set the TextBox`s Text in the Designer when drop in the
UserControl. So I have overwritten the Text Property of the UserControl:
[Browsable(true) ,
Category("Actio n")]
public override string Text
{
get
{
return this.ifxTextBox .Text;
}
set
{
this.ifxTextBox .Text = value;
this.Invalidate ();
}
}
It works fine in the Designer, but when compiling it the Text dissapeares!!!
Why?
Thank you for your help
Rudi