In VB I can loop through controls, or refer to a control by concatenating a variable to a string. Something like:
Dim I as integer I = 1 Me[\"Textbox\" & I]
int i = 1; this.Controls["TextBox" & i].Text = "Some text";
The above code is assuming that it is in a Control/Form.