コード例 #1
0
        private void panelLoad_Paint(object sender, PaintEventArgs e)
        {
            adminDash adminDashfrm = new adminDash();

            adminDashfrm.TopLevel = false;
            panelLoad.Controls.Add(adminDashfrm);
            adminDashfrm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            adminDashfrm.Dock            = DockStyle.Fill;
            adminDashfrm.Show();
        }
コード例 #2
0
        private void btndash_Click(object sender, EventArgs e)
        {
            panelLoad.Controls.Clear();
            adminDash adminDashfrm = new adminDash();

            adminDashfrm.TopLevel = false;
            panelLoad.Controls.Add(adminDashfrm);
            adminDashfrm.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            adminDashfrm.Dock            = DockStyle.Fill;
            adminDashfrm.Show();
        }