title: Find textBox, checkBox, any object by name C#
body: <p>This is really weird, but I can't seem to find a specific textBox(i) or checkBox(i) in .NET CF. In .NET 3.5 I can create this function:</p>
  
  <pre><code>void checking(int input)
  {
      CheckBox checkbox = (CheckBox)this.Controls["checkBox" + input.toString()];
      if(checkbox.isChecked)
        //do something here
  }
  </code></pre>
  
  <p>In this example, it gets the name of the checkBox (i.e checkBox1, checkBox2, etc).</p>
  
  <p>However in .NET CF 3.5 for WINCE6, it keeps on telling me that I need an index inside Controls[] because it can't convert string to int. Does anyone know how to find the specific object without using that foreach statement? That foreach is useful but not for this because it loops through all the checkBoxes. Since I'm developing in ARM based, speed is everything. I'm using VS2008 C# to develop a desktop and mobile app.</p>
  
  <p>Thanks for reading! </p>