P
PeterB
I have a custom made form that works like a editable messagebox. It uses the
following override on the Text property of the form:
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
lblFormTitle.Text = value;
}
}
I have a main form that creates the popup, the constructor takes a string
that is the name and I use a label to display the name as a caption bar.
(the form is borderless as it is not full-sized). The problem is that when I
set the name of the popup and call base.Text = name, in order to set the
actual this.Text value of the form, the main form is also renamed.
If I don't set the base.Text value this.Text is never set, is this a
problem? Is there a better solution to this?
following override on the Text property of the form:
public override string Text
{
get
{
return base.Text;
}
set
{
base.Text = value;
lblFormTitle.Text = value;
}
}
I have a main form that creates the popup, the constructor takes a string
that is the name and I use a label to display the name as a caption bar.
(the form is borderless as it is not full-sized). The problem is that when I
set the name of the popup and call base.Text = name, in order to set the
actual this.Text value of the form, the main form is also renamed.
If I don't set the base.Text value this.Text is never set, is this a
problem? Is there a better solution to this?