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