private void AttendenceSystem_Load(object sender, EventArgs e) { AddEmployee addemp = new AddEmployee(); this.Controls.Add(addemp); addemp.BringToFront(); }
/// <summary> /// this event bring the usercontrol to the front /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void btnEmployee_Click(object sender, EventArgs e) { AddEmployee addemp = new AddEmployee(); this.Controls.Add(addemp); addemp.BringToFront(); }