A
Alejandro González
Hi.
I have this problem.
I create a user control with a constructor with several parameters.
I also add the default constructor so I can add this control in desing time
to a form.
Why this isn't working?
(default constructor was called in InitializeComponent())
private void Form1_Load(object sender, System.EventArgs e){
this.userControl1 = new UserControl("use this parameter");
}
after this call to the alt constructor I can debug and check that everthing
is ok, but the form still shows the control with old values.
thanks
I have this problem.
I create a user control with a constructor with several parameters.
I also add the default constructor so I can add this control in desing time
to a form.
Why this isn't working?
(default constructor was called in InitializeComponent())
private void Form1_Load(object sender, System.EventArgs e){
this.userControl1 = new UserControl("use this parameter");
}
after this call to the alt constructor I can debug and check that everthing
is ok, but the form still shows the control with old values.
thanks