Example #1
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();
     }
 }
Example #2
0
 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();
     }
 }
Example #3
0
 public void OpenForm2()
 {
     if (_form02 == null)
     {
         _form02             = new Form02();
         _form02.MdiParent   = this;
         _form02.FormClosed += new FormClosedEventHandler(form02_FormClosed);
         _form02.Show();
     }
     else
     {
         _form02.Activate();
     }
 }