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