In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following In order to iterate through all the textboxes on a form, and remove the text from all of them, you can use the following code:

VB:
Dim i As Integer
For i = Me.Controls.Count - 1 To 0 Step -1
  If TypeOf Me.Controls(i) Is TextBox Then
      Me.Controls(i).Text = "" 
  End If 
Next
C#:
int i;
for (i = (this.controls.count - 1); (i <= 0); i = (i + -1)) {
 if ((this.controls[i].GetType() == mycontrol)) {
  mecontrols.removeat(i);
 }
}