views:

137

answers:

1

In my windows form application I am using 10 forms.It is fine when only a parent and single child form are used at a time. But in case of multiple use of child form I am getting problem and not able to use them as child forms.They are not working as child form. Your any effort would be helpful for me.

Thanking You In Advance

+1  A: 

A child form's MdiParent property need only be set to your MDI container form. Make sure the MDI form's IsMdiContainer = true.

foreach (Form myForm in ChildForms)
    myForm.MdiParent = myMdiContainer;   // alternatively use 'this'
dboarman