Ejemplo n.º 1
0
 private void ribbonButton3_Click(object sender, EventArgs e)
 {
     foreach (Form f in this.MdiChildren)
     {
         if (f.GetType() == typeof(MDIChild2))
         {
             f.Activate();
             return;
         }
     }
     Form form = new MDIChild2();
     form.MdiParent = this;
     form.Show();
 }
Ejemplo n.º 2
0
        private void ribbonButton3_Click(object sender, EventArgs e)
        {
            foreach (Form f in this.MdiChildren)
            {
                if (f.GetType() == typeof(MDIChild2))
                {
                    f.Activate();
                    return;
                }
            }
            Form form = new MDIChild2();

            form.MdiParent = this;
            form.Show();
        }