For Each oControl As Control In Me.Controls If TypeOf oControl Is TextBox Then ' Do Something End If Next
foreach (Control oControl in this.Controls) { if (oControl is TextBox) { // Do Something } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)