private void dersToolStripMenuItem_Click(object sender, EventArgs e) { bool durum = false; DersForm ders = new DersForm(); foreach (Form form in this.MdiChildren) { if (form.Text == ders.Text) { durum = true; form.Activate(); } } if (durum == false) { ders.MdiParent = this; ders.Show(); } { } }
private void toolStripButton1_Click(object sender, EventArgs e) { DersForm d1 = new DersForm(); d1.Show(); }