打开 mdi 窗体的子窗体
作者:互联网
原文链接:http://www.cnblogs.com/JoeDZ/archive/2008/10/14/1310487.html
// 打开窗体。
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();
}
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
标签:www,mdi,Form,frm,窗体,打开,fm,formName 来源: https://blog.csdn.net/weixin_30371469/article/details/98605071