Find textBox, checkBox, any object by name C#
问题 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: void checking(int input) { CheckBox checkbox = (CheckBox)this.Controls["checkBox" + input.toString()]; if(checkbox.isChecked) //do something here } In this example, it gets the name of the checkBox (i.e checkBox1, checkBox2, etc). 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