How can I make i loop where I set a variable on the controls to the same value?

textBox1, textBox2, textBox3

textBox?????.Text="That's how you do it!";

That should not be nessesary I think!

I think this is close, but not quite it:

for(i=1; i<4; i++){
foreach(TextBox t in this.Controls)
if(t.Name == "textBox"+i)
t.Text= "Something"

Yeah, um, I would say that shouldn't be necessary; you want an array of textboxes instead.

hey man thanks
But i don't really have that options...i mean i dont't want to group them in an array, so im looking for an alternative approach instead