コード例 #1
0
        private void BtnDashboard_Click(object sender, EventArgs e)
        {
            panelNav.Height        = BtnDashboard.Height;
            panelNav.Top           = BtnDashboard.Top;
            panelNav.Left          = BtnDashboard.Left;
            BtnDashboard.BackColor = Color.FromArgb(245, 245, 245);

            lbITitle.Text = "Today's Summary";
            this.PnlFormLoader.Controls.Clear();
            DashboardForm dashboardForm_Vrb = new DashboardForm()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

            dashboardForm_Vrb.FormBorderStyle = FormBorderStyle.None;
            this.PnlFormLoader.Controls.Add(dashboardForm_Vrb);
            dashboardForm_Vrb.Show();
        }
コード例 #2
0
        public MainForm()
        {
            InitializeComponent();
            Region                 = System.Drawing.Region.FromHrgn(CreateRoundRectRgn(0, 0, Width, Height, 25, 25));
            panelNav.Height        = BtnDashboard.Height;
            panelNav.Top           = BtnDashboard.Top;
            panelNav.Left          = BtnDashboard.Left;
            BtnDashboard.BackColor = Color.FromArgb(245, 245, 245);

            lbITitle.Text = "Today's Summary";
            this.PnlFormLoader.Controls.Clear();
            DashboardForm dashboardForm_Vrb = new DashboardForm()
            {
                Dock = DockStyle.Fill, TopLevel = false, TopMost = true
            };

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