this.Cursor=Cursors.WaitCursor;
//判读是否已经打开过
foreach(Form f in this.MdiChildren)
{
if(f.GetType().FullName==classname)
{
f.Activate();
this.Cursor=Cursors.Arrow;
return;
}
}
//创建
YourForm child=new YourForm();
child.MdiParent=this;
child.WindowState=FormWindowState.Maximized;
child.Show();
this.Cursor=Cursors.Arrow;
//判读是否已经打开过
foreach(Form f in this.MdiChildren)
{
if(f.GetType().FullName==classname)
{
f.Activate();
this.Cursor=Cursors.Arrow;
return;
}
}
//创建
YourForm child=new YourForm();
child.MdiParent=this;
child.WindowState=FormWindowState.Maximized;
child.Show();
this.Cursor=Cursors.Arrow;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货