Make Parent Child Relationship between Forms Using IsMdiContainer Property of the Form
Author: DevASP
Download Source Code : 313_mdi.zip
If you want that your all forms remain inside a main Parent Form then you should use this MDI form Relationship. This is very Simple in Visual Studio.net
In this simple example you just create two forms one form is the main form named form1 and other one is child form named child. Just change the property of main form to make it the parent form in the load event and call child one from
In these statements first statement
make form1 parent form. Second statement
create the object of the child form by which we can call that form. Third statement
make child form child of the form1 and the last statement
call the child form.
NOTE:
This is a important thing that one form cannot be child and a parent at the same time.