예제 #1
0
        private void btnsettings_Click(object sender, EventArgs e)
        {
            pnlNav.Height         = btnsettings.Height;
            pnlNav.Top            = btnsettings.Top;
            btnsettings.BackColor = Color.FromArgb(46, 51, 73);

            this.pnlFormLoader.Controls.Clear();
            frmSettings frmSettings_vrb = new frmSettings()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmSettings_vrb.FormBorderStyle = FormBorderStyle.None;
            this.pnlFormLoader.Controls.Add(frmSettings_vrb);
            frmSettings_vrb.Show();
            lbltitle.Text = "Settings";
        }
예제 #2
0
        private void BtnSettings_Click_1(object sender, EventArgs e)
        {
            PnlNav.Height         = BtnSettings.Height;
            PnlNav.Top            = BtnSettings.Top;
            PnlNav.Left           = BtnSettings.Left;
            BtnSettings.BackColor = Color.FromArgb(46, 51, 73);

            lblTitle.Text = "Settings";
            this.PnlFormLoader.Controls.Clear();
            frmSettings FrmDashboard_Vrb = new frmSettings()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            FrmDashboard_Vrb.FormBorderStyle = FormBorderStyle.None;
            this.PnlFormLoader.Controls.Add(FrmDashboard_Vrb);
            FrmDashboard_Vrb.Show();
        }