private void button3_Click(object sender, EventArgs e) { frmDashboad frm = new frmDashboad(); frm.TopLevel = false; panel4.Controls.Add(frm); frm.BringToFront(); frm.Show(); }
private void Form1_Load(object sender, EventArgs e) { panel3.Width = 45; frmDashboad frm = new frmDashboad(); frm.TopLevel = false; panel4.Controls.Add(frm); frm.BringToFront(); frm.Show(); btnEmployee.Enabled = false; }