|
-
February 10th, 2009, 02:06 PM
#1
help need in Loading forms into split container
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...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|