Hi ,

I have a problem with loading forms into a split container.

I created a project which contains three forms.

Form1 , Form2, Form3.

Form1:

I loaded a split container into it.

A split container contains two panels (panel1, panel2).

I created a objects for Form2 , Form3 as (form2,form3)

I added those two forms into into split container..

this.splitContainer.Panel1.Controls.Add(form2);
this.splitContainer.Panel2.Controls.Add(form3);

When I Run the code, I got error saying

An unhandled exception of type 'System.ArgumentException' occurred in System.Windows.Forms.dll

Additional information: Top-level control cannot be added to a control.

I need a help to figure out this issue.

I advance thank you...