Exemple #1
0
        private void picMenuSub1_Click(object sender, EventArgs e)
        {
            frmHomePage childForm = frmHomePage.GetInstance();

            childForm.MdiParent = this;
            childForm.Parent    = splitContainer.Panel2;

            childForm.WindowState = FormWindowState.Normal;
            childForm.Dock        = DockStyle.Fill;
            childForm.Size        = new Size(splitContainer.Width - splitContainer.SplitterDistance, splitContainer.Height);
            childForm.BringToFront();
            childForm.Show();
        }
Exemple #2
0
        private void SetHomePage()
        {
            frmHomePage childForm = frmHomePage.GetInstance();

            childForm.MdiParent = this;
            childForm.Parent    = splitContainer.Panel2;

            childForm.WindowState = FormWindowState.Normal;
            childForm.Dock        = DockStyle.Fill;
            childForm.Size        = new Size(splitContainer.Width - splitContainer.SplitterDistance, splitContainer.Height);
            childForm.BringToFront();
            childForm.Show();
            //ShowChildForm<frmHomePage>();
        }