subramaninan Posted December 5, 2008 Posted December 5, 2008 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 Quote
Administrators PlausiblyDamp Posted December 8, 2008 Administrators Posted December 8, 2008 Shouldn't the MDIParent be form1 rather than form1.ActiveForm? Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.