private void dashboardBtn_Click(object sender, EventArgs e) { AdminSide_Dashboard frm = new AdminSide_Dashboard() { TopLevel = false, TopMost = true }; frm.FormBorderStyle = FormBorderStyle.None; this.panelFormOpen.Controls.Add(frm); frm.Show(); frm.BringToFront(); dashboardBtn.FillColor = System.Drawing.Color.FromArgb(7, 159, 234); dashboardBtn.Image = Properties.Resources.Asset_8; dashboardBtn.ImageOffset = new Point(0, 0); dashboardBtn.ImageSize = new Size(19, 19); dashboardBtn.ForeColor = System.Drawing.Color.White; reportBtn.FillColor = System.Drawing.Color.FromArgb(255, 255, 255); reportBtn.Image = Properties.Resources.Asset_10; reportBtn.ImageSize = new Size(19, 19); reportBtn.ForeColor = System.Drawing.Color.Black; manageUserBtn.FillColor = System.Drawing.Color.FromArgb(255, 255, 255); manageUserBtn.Image = Properties.Resources.Asset_331; manageUserBtn.ImageSize = new Size(19, 19); manageUserBtn.ForeColor = System.Drawing.Color.Black; closeDropdown.Start(); }
//load the administrator dashboard private void Administrator_Dashboard_Load(object sender, EventArgs e) { AdminSide_Dashboard frm = new AdminSide_Dashboard() { TopLevel = false, TopMost = true }; frm.FormBorderStyle = FormBorderStyle.None; this.panelFormOpen.Controls.Add(frm); frm.Show(); }