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();
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public void BringToFront()
 {
     CurrentForm.BringToFront();
 }