I have a Panel control. And inside the panel users can add combobox\'s, textbox\'s labels etc and drag them around and stuff, and there\'s a Delete button on my form where if th
I know is a pretty old post, but I hope could help somebody.
The only way I found that works is:
while(panel.Controls.Count > 0) { panel.Controls[0].Dispose(); }
This way it doesn't matter if the list of Controls become smaller in the middle of the loop.