示例#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();
 }
示例#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();
        }