private void accordionControlElement4_Click(object sender, EventArgs e) { tm = new TaskManagement(); tm.Show(); tm.Dock = DockStyle.Fill; panel1.Controls.Clear(); panel1.Controls.Add(tm); }