title: How can I loop through many ComboBoxes with similar name?
body: <p>I have many ComboBoxes with similar name like ComboBox1, ComboBox2, ComboBox3 and etc. How can I looping through these ComboBoxes and get some parameters of them.<br>
  In VB.NET it's like that:</p>
  
  <pre class="lang-vb prettyprint-override"><code>For k As Integer = 1 To 50
      Console.WriteLine(Me.GroupBox1.Controls("ComboBox" &amp; k).SelectedIndex)
  Next
  </code></pre>
  
  <p>Can I do something like that on C#?</p>