foreach(Control c in List) { if (c is TextBox) { ((TextBox)c).Text = "This should be the new text"; } }