private void Form1_Load(object sender, EventArgs e) { XtraForm child = new XtraForm(); child.Text = "ChildForm 1"; child.MdiParent = this; child.Show(); XtraForm child2 = new XtraForm(); child2.Text = "ChildForm 2"; child2.MdiParent = this; child2.Show(); child.BringToFront(); }
private void OpenForm(ref XtraForm form) { XtraForm fo = form; XtraForm from = MdiChildren.FirstOrDefault(f => f.Text == fo.Text) as XtraForm; if (from != null) { from.BringToFront(); } else { form.MdiParent = this; form.Show(); } SplashScreenManager.CloseForm(false); }
public void BringToFront() { CurrentForm.BringToFront(); }