Ejemplo n.º 1
0
 public MDIForm()
 {
     InitializeComponent();
     if (helpForm == null)
     {
         helpForm = new helpForm();
         helpForm.MdiParent = this;
         helpForm.WindowState = FormWindowState.Maximized;
         helpForm.Show();
         helpForm.FormClosed += new FormClosedEventHandler(helpForm_FormClosed);
     }
 }
Ejemplo n.º 2
0
 private void helpToolBtn_Click(object sender, EventArgs e)
 {
     if (helpForm == null)
     {
         helpForm = new helpForm();
         helpForm.MdiParent = this;
         helpForm.WindowState = FormWindowState.Maximized;
         helpForm.FormClosed += new FormClosedEventHandler(helpForm_FormClosed);
         helpForm.Show();
     }
     else {
         helpForm.WindowState = FormWindowState.Maximized;
         helpForm.Activate();
         helpForm.Focus();
     }
 }
Ejemplo n.º 3
0
 void helpForm_FormClosed(object sender, FormClosedEventArgs e)
 {
     helpForm.Dispose();
     helpForm = null;
 }