I am using a SplitContainter
in MDI parent Form.
My problem is I loaded a form in panel1
named First Form. In this First Form with a button I load SecondForm
in panel2.
I am using this code:
Form In_but = new SecondForm();
In_but.MdiParent = this.ParentForm;
In_but.TopLevel = false;
this.splitContainer1.Panel2.Controls.Add(In_but);
In_but.Show();
But it's not working. The error is: does not contain definition splitContainer1
.