Designer and UserControl.Text

F

Franz

namespace ControlLib {
[Designer("System.Windows.Forms.Design.ParentControlDesigner,
System.Design", typeof(IDesigner))]
public class MyTabPage : System.Windows.Forms.UserControl {
private Button button;
[Browsable(true)]
public new string Text {
get { return base.Text; }
set {
base.Text = value;
if (null != this.button) {
this.button.Text = value;
}
}
}
}
}

namespace Foo {
public class HomePanel : ControlLib.TabPage {
private void InitializeComponent() {
}
}
}

When I set HomePanel.Text in Designer , it doesn't generate code for the
value assignment inside HomePanel.InitializeComponent
How can I modify my code in order to fulfill my requirement ?
Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top