title: C# Updating multiple text boxes with similar names
body: <p>I have multiple textbox names such as R1TotalCost, R2TotalCost, R3TotalCost, all the way up to R25TotalCost. Is there anyway to edit the text values, and or text colours to them all using a code simular to this</p>
  
  <pre><code>for (i=1; i &lt;=25, i++) {
      string TextBoxName  ="R" + i + "TotalCost";
      TextBoxName.text = "£25";
      TextBoxName.Foreground = Brushes.Green;  
  }
  </code></pre>