예제 #1
0
        public Form1()
        {
            InitializeComponent();
            Region = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 25, 25));

            labelTitle.Text = "Home";
            rfmHome frmDashboard_vrb = new rfmHome()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmDashboard_vrb.FormBorderStyle = FormBorderStyle.None;
            this.PnlFormLoader.Controls.Add(frmDashboard_vrb);
            frmDashboard_vrb.Show();
        }
예제 #2
0
        }//endLoad

        #region buttoms
        //-----------------------buttoms--------------------------------
        private void buttonHome_Click(object sender, EventArgs e)
        {
            panelLeft.Height     = buttonHome.Height;
            panelLeft.Top        = buttonHome.Top;
            buttonHome.BackColor = Color.FromArgb(48, 59, 71);

            labelTitle.Text = "Home";
            this.PnlFormLoader.Controls.Clear();
            rfmHome frmHome_Vrb = new rfmHome()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            frmHome_Vrb.FormBorderStyle = FormBorderStyle.None;
            this.PnlFormLoader.Controls.Add(frmHome_Vrb);
            frmHome_Vrb.Show();
            ExitN = true;
        }