private void notToolStripMenuItem_Click(object sender, EventArgs e) { bool durum = false; OgrenciDers ogrenciders = new OgrenciDers(); foreach (Form form in this.MdiChildren) { if (form.Text == ogrenciders.Text) { durum = true; form.Activate(); } } if (durum == false) { ogrenciders.MdiParent = this; ogrenciders.Show(); } }
private void toolStripButton1_Click(object sender, EventArgs e) { OgrenciDers od1 = new OgrenciDers(); od1.Show(); }