Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...