title: How do you Loop through a specific Textboxes
body: <p>I have found code that will allow me to loop through every textbox on a form and then allow me to compare it against some criteria.  But thats not what i want to do.  I know the 4 textboxes i want to loop through, i just don't know how to refer to those 4, without looping through every textbox on the form.  Which from my program point of view isn't really an issue as i'll only have about 20 textboxes in total.  But that isn't the point, i want to know how to do it propperly.</p>
  
  <p>Basically i have 4 Textboxes : MyTxtBox1, MyTxtBox2, MyTxtBox3 and MyTxtBox4.  And its only these i want to loop through.</p>
  
  <p>Something along the lines of:</p>
  
  <pre><code>          for (int i = 1; i &lt; 5; i++)
            {   
      string myName = "MyTxtBox" + i.ToString();
              if (MyFunction(this.myName))
              {
                  return;
              }
            }
  </code></pre>
  
  <p>But this.myName doesn't work and thats probably because its just a string.  I don't know how i can refer to the textbox on the form after i've built the textbox name as a string.</p>
  
  <p>Can anyone see what it is i'm trying to do and is it even possible?  Or will i have to loop through every textbox on the form and then test against its .Name property.</p>
  
  <p>Thanks</p>