How to reset groupbox items? [duplicate]
问题 This question already has answers here : Method to reset members inside groupBox (3 answers) Closed 3 years ago . I wanna clean my groupbox items after i click an button. I tried some code blocks, but they don´t work for reset controls. I don´t wanna remove or delete it, I just wanna reset the items in the groupbox. This is working for remove groupbox items. public void ClearPanels(GroupBox control) { control.Controls.Clear(); } or this groupBox2.Controls.Clear(); It looks like this, before