private void barButtonItem2_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (noChild() == true) { frmCrearPerfil f = new frmCrearPerfil(); f.MdiParent = this; f.Show(); //f.WindowState = FormWindowState .Maximized; } }