private void exercício4ToolStripMenuItem_Click(object sender, EventArgs e) { frmExercicio4 frm4 = new frmExercicio4(); frm4.MdiParent = this; frm4.WindowState = FormWindowState.Maximized; frm4.Show(); }
private void exercício4ToolStripMenuItem_Click(object sender, EventArgs e) { Form fc = Application.OpenForms["frmExercicio4"]; if (fc != null) { fc.Close(); } frmExercicio4 FrmExercicio4 = new frmExercicio4(); FrmExercicio4.MdiParent = this; FrmExercicio4.WindowState = FormWindowState.Maximized; FrmExercicio4.Show(); }