private void perspective_payslip_Click(object sender, EventArgs e) { panel1.Controls.Clear(); PerspectivePayslip uc = new PerspectivePayslip(); panel1.Controls.Add(uc); }