To JackieChengII (不成风就成龙):
假设有一个子窗体是FormB,用下面的方法打开FormB. 其他的也是同样的代码. foreach(Form f in this.MdiChildren)
{
if ( f is FormB)
{
f.Show();
}
else
{
FormB formNew = new FormB();
formNew.MdiParent = this;
formNew.Show();
}
}