Пример #1
0
        private void btn_Setting_Click(object sender, EventArgs e)
        {
            var frm = new frm_UpdateUserProfile();

            frm.MdiParent = this;
            frm.Dock      = DockStyle.Fill;
            frm.Show();
        }
Пример #2
0
        private void btn_UserSettings_Click(object sender, EventArgs e)
        {
            SidePanel.Height = btn_UserSettings.Height;
            SidePanel.Top    = btn_UserSettings.Top;
            // WE have use a Mdi Parent Method to load the form
            // if you go and look at the form you will see a gray area this area is called Mdi Container
            //When Ever a new form is loaded it will be launched in that gray area
            var frm = new frm_UpdateUserProfile();

            frm.MdiParent = this;
            frm.Dock      = DockStyle.Fill;
            frm.Show();
        }