private void exercĂcio3ToolStripMenuItem_Click(object sender, EventArgs e) { frmExercicio3 frm3 = new frmExercicio3(); frm3.MdiParent = this; frm3.WindowState = FormWindowState.Maximized; frm3.Show(); }
private void exercicio3ToolStripMenuItem_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["frmExercicio3"]; if (fc != null) { fc.Close(); } frmExercicio3 frm = new frmExercicio3(); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; frm.Show(); }