Esempio n. 1
0
        private void exercício5ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmExercicio5 frm5 = new frmExercicio5();

            frm5.MdiParent   = this;
            frm5.WindowState = FormWindowState.Maximized;
            frm5.Show();
        }
Esempio n. 2
0
        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();
        }