public bool CheckMdi(string formName)
{
bool state = false;
foreach (Form tempForm in this.MdiChildren)
{
if (tempForm.Name.ToLower() == formName.ToLower())
{
if (tempForm.WindowState == FormWindowState.Minimized)
tempForm.WindowState = FormWindowState.Normal;
tempForm.Activate();
return true;
}
else
{
return false;
}
}
return state;
}