You are correct: the other responses here do not deal with Controls
inside Container Controls, like Panel, and GroupBox, in the Form.
To find all the TextBoxes, and ComboBoxes, on the Form, no matter how "deeply" they are "nested" inside Container Controls, requires a recursive search.
In my response to a previous QA question I provided code for recursively building a collection of all Controls on a Form using the "stack-based" technique recommended by Eric Lippert: [
^].
You can take that code and use it, like this:
foreach (TextBox theTextBox in (SpecialMethods.GetAllControls(this)).OfType<TextBox>().ToList())
{
theTextBox.Clear();
}
foreach (ComboBox theComboBox in (SpecialMethods.GetAllControls(this)).OfType<ComboBox>().ToList())
{
theComboBox.Items.Clear();
}