title: Generic way to get the values from multiple controls
body: <p>I have a <code>Form</code> with multiple different controls like <code>ComboBox</code>, <code>TextBox</code> and <code>CheckBox</code>. I am looking for a generic way to get values from these controls while looping over them.</p>
  
  <p>For example, something like this:</p>
  
  <pre><code>foreach(Control control in controls)
  {
      values.Add(control.Value);
  }
  </code></pre>
  
  <p>Is it possible or do I need to treat each <code>control</code> separately?</p>