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.
[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.