示例#1
0
        private void exercício3ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExercício3 frm3 = new frmExercício3();

            frm3.MdiParent   = this;
            frm3.WindowState = FormWindowState.Maximized;
            frm3.Show();
        }
示例#2
0
        private void exercício3ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["frmExercício3"];

            if (fc != null)
            {
                fc.Close();
            }

            frmExercício3 objFrm3 = new frmExercício3();

            objFrm3.MdiParent   = this;
            objFrm3.WindowState = FormWindowState.Maximized;
            objFrm3.Show();
        }