dim text_box as object for each text_box in form1.controls
if type of text_box is TextBox then
text_box.text="hello"
End if
next
if type of text_box is TextBox then
text_box.text="hello"
End if
next
If TypeOf text_box Is TextBox Then
text_box.Text = "hello"
End If
Next
if typeof text_box is TextBox then
text_box.text="hello"
End if
next