private void OpenForm(string formName){
foreach (Form fm in this.MdiChildren) {
if (fm.Name == formName) {
fm.Focus();
return;
}
}
Form frm = (Form)Type.GetType(formNameSpace + formName).Assembly.CreateInstance(formNameSpace + formName);
frm.MdiParent = this;
frm.Show();
}
转载于:https://www.cnblogs.com/JoeDZ/archive/2008/10/14/1310487.html