Beispiel #1
0
        private void btnLogin_Click(object sender, EventArgs e)
        {
            ActivateButton(sender, RGBColors.color1);

            lblTitle.Text = "Login";
            this.PnlFormLoader.Controls.Clear();
            frmDashboard frmDashboard_Vrb = new frmDashboard()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmDashboard_Vrb.FormBorderStyle = FormBorderStyle.None;
            this.PnlFormLoader.Controls.Add(frmDashboard_Vrb);
            frmDashboard_Vrb.Show();
        }
Beispiel #2
0
        //Constructor
        public Form1()
        {
            InitializeComponent();
            leftBorderBtn      = new Panel();
            leftBorderBtn.Size = new Size(7, 60);
            panelMenu.Controls.Add(leftBorderBtn);

            lblTitle.Text = "Login";
            this.PnlFormLoader.Controls.Clear();
            frmDashboard frmDashboard_Vrb = new frmDashboard()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

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