private void exercício1ToolStripMenuItem_Click(object sender, EventArgs e) { frmExercicio1 objFrm1 = new frmExercicio1(); objFrm1.MdiParent = this; objFrm1.WindowState = FormWindowState.Maximized; objFrm1.Show(); }
private void exercicio1ToolStripMenuItem_Click_1(object sender, EventArgs e) { frmExercicio1 objFrm1 = new frmExercicio1(); objFrm1.MdiParent = this; objFrm1.WindowState = FormWindowState.Maximized; objFrm1.Show(); //Form form1 = Application.OpenForms["frmExercicio1"]; }