예제 #1
0
파일: Form1.cs 프로젝트: PaulinhaP/LP2
        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();
        }