private void ResetTextBoxBackColor( Control control ) { if (control != null) { if (control is TextBox) control.BackColor = Color.White; else { foreach (Control ctrl in control.Controls) { ResetTextBoxBackColor( ctrl ); } } } }