private void btiEmpresaServicio_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { FormCollection fc = Application.OpenForms; bool open = false; foreach (Form frm in fc) { if (frm.Name == "frmOrdenPago") { frm.Focus(); open = true; } } if (open == false) { frmEmpresaServicio empresaServicio = new frmEmpresaServicio(); empresaServicio.MdiParent = this; empresaServicio.Show(); } }