How can I use a Foreach Statement to do something to my TextBoxes?
foreach (Control X in this.Controls) { Check if the controls is a TextBox, if it is de
You're looking for
foreach (Control x in this.Controls) { if (x is TextBox) { ((TextBox)x).Text = String.Empty; } }