Пример #1
0
        private void btnContactUs_Click(object sender, EventArgs e)
        {
            pnlNav.Height          = btnContactUs.Height;
            pnlNav.Top             = btnContactUs.Top;
            btnContactUs.BackColor = Color.FromArgb(46, 51, 73);

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

            frmContactUs_vrb.FormBorderStyle = FormBorderStyle.None;
            this.pnlFormLoader.Controls.Add(frmContactUs_vrb);
            frmContactUs_vrb.Show();
            lbltitle.Text = "Contact Us";
        }
Пример #2
0
        private void BtnContactus_Click_1(object sender, EventArgs e)
        {
            PnlNav.Height          = BtnContactus.Height;
            PnlNav.Top             = BtnContactus.Top;
            PnlNav.Left            = BtnContactus.Left;
            BtnContactus.BackColor = Color.FromArgb(46, 51, 73);

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

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