foreach (Control control in this.Controls) { if (control is TextBox) { ((TextBox)control).Text = ""; } }