找到答案啦,不用你们啦
//-------------------------------------------------------------------------
//判断Child WD 是否已经打开
//-------------------------------------------------------------------------
private bool checkChildFrmExist(string childFrmName)
{
foreach (Form childFrm in this.MdiParent.MdiChildren)
{
if (childFrm.Name == childFrmName) //用子窗体的Name进行判断,如果存在则将他激活
{
if (childFrm.WindowState == FormWindowState.Minimized)
{
childFrm.WindowState = FormWindowState.Normal;
}
childFrm.Activate();
return true;
}
}
return false;
}