private void manageStudentsInfoToolStripMenuItem_Click(object sender, EventArgs e) { bool Isopen = false; foreach (Form f in Application.OpenForms) { if (f.Text == "Manage_Student_Info") { Isopen = true; f.BringToFront(); break; } } if (Isopen == false) { Manage_Student_Info msi = new Manage_Student_Info(); msi.Show(); } }
private void editStudentbtn_Click(object sender, EventArgs e) { Manage_Student_Info msi = new Manage_Student_Info(); msi.Show(); }