This method will help you to work with MDI Doc. Implement this method in your main form (MDI Parent)
public void LaunchChildForm(Form ChildForm)
{
bool FormAlreadyExists = false;
foreach (Form myForm in MdiChildren)
{
if (myForm.GetType() == ChildForm.GetType())
{
FormAlreadyExists = true;
ChildForm = myForm;
break;
}
}
if (FormAlreadyExists == true)
{
ChildForm.BringToFront();
}
else
{
ChildForm.MdiParent = this;
ChildForm.WindowState = FormWindowState.Normal;
ChildForm.Show();
}
}