子窗体继承父窗体以后只能打开一次

 

通过点击Form1中的Btn打开Form2

Form1

private static Form1 frm

public static Void OPenWin()

{

  if (frm == null || frm.IsDisposed)
    {
      frm = new Form1();
    }
  return frm;

}

 

Form2

 

Form1 frm1 = Form1.OpenWin();

frm1.show();

posted @ 2015-05-11 15:43  shuke2016  阅读(105)  评论(0编辑  收藏  举报