示例#1
0
文件: Form1.cs 项目: vinicresende/LP2
        private void exercício2ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExercicio2 frm2 = new frmExercicio2();

            frm2.MdiParent   = this;
            frm2.WindowState = FormWindowState.Maximized;
            frm2.Show();
        }
示例#2
0
        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();
        }