private void alunoToolStripMenuItem_Click(object sender, EventArgs e) { frmAluno frmAlu = new frmAluno(); frmAlu.MdiParent = this; frmAlu.WindowState = FormWindowState.Maximized; frmAlu.Show(); }
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(); } }
private void alunoToolStripMenuItem_Click(object sender, EventArgs e) { frmAluno frmaluno = new frmAluno(); frmaluno.Show(); }