K
Kyle Kaitan
Sorry, I hit enter before I finished writing the previous post... ignore
that one.
====
all,
I made a composite control ("TitleBar") consisting of a Panel that in turn
holds an Image and a Label. The Text property of this control just gets or
sets the text in the Label; nothing fancy (see below).
At design-time, if I change the Text property of the control once it's in a
form, it appears fine. But if I close the designer and re-open it, the text
is gone. What gives?
Any help is appreciated. Thanks!
[Category("Appearance")]
[Description("The title text to be displayed.")]
[Browsable(true)]
public override string Text
{
get
{
return this.f_Label.Text;
}
set
{
this.f_Label.Text = value;
}
}
that one.
====
all,
I made a composite control ("TitleBar") consisting of a Panel that in turn
holds an Image and a Label. The Text property of this control just gets or
sets the text in the Label; nothing fancy (see below).
At design-time, if I change the Text property of the control once it's in a
form, it appears fine. But if I close the designer and re-open it, the text
is gone. What gives?
Any help is appreciated. Thanks!
[Category("Appearance")]
[Description("The title text to be displayed.")]
[Browsable(true)]
public override string Text
{
get
{
return this.f_Label.Text;
}
set
{
this.f_Label.Text = value;
}
}