private bool checkChildrenForm(string formname)
{
foreach (Form child in this.MdiChildren)
{
if(child.Name==formname)
{
//如果最小化
if(child.WindowState==FormWindowState.Minimized)
child.WindowState=FormWindowState.Normal;
//恢复
child.Activate();
//变为当前活动窗体
return true;
}
}
return false;
}