for (int i = 1; i < 4; i++) { string txtName = "textBox" + i.ToString(); TextBox control = (TextBox)this.GetType().GetField(txtName, MemberAccess).GetValue(this); control.Text = i.ToString(); }