Exemple #1
0
 private void Form2_Load(object sender, EventArgs e)
 {
     home             = new ahome();
     home.MdiParent   = this;
     home.FormClosed += Home_FormClosed;
     home.Show();
 }
Exemple #2
0
 private void homelbl_Click(object sender, EventArgs e)
 {
     if (home == null)
     {
         home             = new ahome();
         home.MdiParent   = this;
         home.FormClosed += Home_FormClosed;
         home.Show();
     }
     else
     {
         home.Activate();
     }
 }