private void cadastroDeMódulosToolStripMenuItem_Click(object sender, EventArgs e) { Boolean ok = false; foreach (Form frm in this.MdiChildren) { if (frm is UICadastraMod) { frm.BringToFront(); ok = true; } } if (ok == false) { UICadastraMod g = new UICadastraMod(); g.MdiParent = this; g.WindowState = FormWindowState.Maximized; g.ShowInTaskbar = false; g.Show(); } else { KryptonMessageBox.Show(null, "A Tela de Cadastro de Módulos já se encontra aberta", "A V I S O", MessageBoxButtons.OK, MessageBoxIcon.Information); } }