예제 #1
0
 public void OpenForm2()
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = this;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
예제 #2
0
파일: Main.cs 프로젝트: ragnakuei/MdiForm
 private void form02ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = this;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }
예제 #3
0
 private void btnOpenForm2_Click(object sender, EventArgs e)
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = _mdiParentForm;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }