title: Combobox selectedvalue
body: <p>I have a combobox on my form (winforms). In the properties I have set the DisplayMember and the ValueMember. DisplayMember = Name and ValueMember = ID. The Combobox is populated with the following objects:</p>
  
  <pre><code>public class MyObj
      {
          public string Name
          {
              get; set;
          }
  
          public int ID { get; set; }
      }
  </code></pre>
  
  <p>The Name displays fine in the dropdown(so DisplayMember is working) however, when I do:</p>
  
  <p>mycombobox.SelectedValue it is ALWAYS null. </p>
  
  <p>Does anyone know if I've forgotten to do anything?</p>