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