subramaninan
Newcomer
- Joined
- Dec 4, 2008
- Messages
- 1
Hi Friends
I'm a beginner to .NET C#, and i'm working in a project where my first MDI Child opens a normal form which is not a child form and get a value in that and returns it to the second MDI Child form.
The Flow is
Parent(Form 1) --> Child 1(Form 2) ---> Form 3 ----> Child 2(Form 4)
I'm struck'd in third level of opening the child 2 form in MDI container from From 3.
I tried with the below code in the Form3 button click event and get an exception.
Form4 sr = new Form4(text);
sr.MdiParent = Form1.ActiveForm;
sr.Show();
And the error was
Form that was specified to be the MdiParent for this form is not an MdiContainer.
Parameter name: value
Plz help in getting out from this.
Thanks in advance
Subramanian.K.S
I'm a beginner to .NET C#, and i'm working in a project where my first MDI Child opens a normal form which is not a child form and get a value in that and returns it to the second MDI Child form.
The Flow is
Parent(Form 1) --> Child 1(Form 2) ---> Form 3 ----> Child 2(Form 4)
I'm struck'd in third level of opening the child 2 form in MDI container from From 3.
I tried with the below code in the Form3 button click event and get an exception.
Form4 sr = new Form4(text);
sr.MdiParent = Form1.ActiveForm;
sr.Show();
And the error was
Form that was specified to be the MdiParent for this form is not an MdiContainer.
Parameter name: value
Plz help in getting out from this.
Thanks in advance
Subramanian.K.S