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
foreach (Control x in this.Controls) { if (x is TextBox) { ((TextBox)x).Text = String.Empty; //instead of above line we can use *** x.resetText(); } }