Question : clear controls from panel c#
Answered by : giamblers
//to remove all comboboxes foreach (Control item in panel1.Controls.OfType<ComboBox>()) { panel1.Controls.Remove(item); }
Source : https://stackoverflow.com/questions/13888558/removing-dynamic-controls-from-panel | Last Update : Sun, 01 Nov 20