コード例 #1
0
 private void BtnHome_Click(object sender, EventArgs e)
 {
     sidePanel.Height = btnHome.Height;
     sidePanel.Top    = btnHome.Top;
     panelDashboard.Controls.Clear();
     UserControls.userHome home = new UserControls.userHome();
     panelDashboard.Controls.Add(home);
     home.Dock = DockStyle.Fill;
 }
コード例 #2
0
        private void Dashboard_Load(object sender, EventArgs e)
        {
            lblname.Text      = loginName;
            Globals.dashboard = this;

            UserControls.userHome home = new UserControls.userHome();
            panelDashboard.Controls.Add(home);
            sidePanel.Height = btnHome.Height;
            sidePanel.Top    = btnHome.Top;
            checkAccess();
        }