private void detailsToolStripMenuItem_Click(object sender, EventArgs e) { using (Employee_Details ed = new Employee_Details()) { ed.FormClosed += new FormClosedEventHandler(MyForm_FormClosed); ed.ShowDialog(); } }
private void toolStripMenuItem2_Click(object sender, EventArgs e) { Employee_Details em = new Employee_Details(); em.ShowDialog(); }