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