Пример #1
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAluno frm = new frmAluno();

            frm.MdiParent   = this;
            frm.WindowState = FormWindowState.Maximized;
            frm.Show();
        }
Пример #2
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form fc = Application.OpenForms["frmAluno"];

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

            frmAluno frmAlu = new frmAluno();

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