Exemple #1
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAluno frmAlu = new frmAluno();

            frmAlu.MdiParent   = this;
            frmAlu.WindowState = FormWindowState.Maximized;
            frmAlu.Show();
        }
Exemple #2
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            var instanceb = Application.OpenForms.OfType <frmAluno>().FirstOrDefault();

            if (instanceb == null)
            {
                instanceb             = new frmAluno();
                instanceb.MdiParent   = this;
                instanceb.WindowState = FormWindowState.Maximized;
                instanceb.Show();
            }
            else
            {
                //instanceb.Focus();
            }
        }
Exemple #3
0
        private void alunoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmAluno frmaluno = new frmAluno();

            frmaluno.Show();
        }