1 2 3 4 5 6 7 8 9 10 11 12 13 14 | private void CheckMdiChildren(Form form) { foreach (Form frm in this .MdiChildren) { if (frm.GetType() == form.GetType()) { frm.Focus(); return ; } } form.MdiParent = this ; form.Show(); } |
1 2 | Form1 yeniform = new Form1 (); CheckMdiChildren(yeniform ); |