title: Can't get Value from ComboBox
body: <p>I have a simple comboBox with some Value/Text items in it. I have using ComboBox.DisplayMember and ComboBox.ValueMember to correctly set the value/text. When I try to get the value, it returns an empty string. Here's my code:</p>
  
  <p>FormLoad event:</p>
  
  <pre><code>cbPlayer1.ValueMember = "Value";
  cbPlayer1.DisplayMember = "Text";
  </code></pre>
  
  <p>SelectIndexChanged of ComboBox event:</p>
  
  <pre><code>cbPlayer1.Items.Add(new { Value = "3", Text = "This should have a value of 3" });
  MessageBox.Show(cbPlayer1.SelectedValue+"");
  </code></pre>
  
  <p>And it returns an empty dialog box. I also tried ComboBox.SelectedItem.Value (which VS sees, see picture) but it does not compile:</p>
  
  <pre><code>'object' does not contain a definition for 'Value' and no extension method 'Value' accepting a first argument of type 'object' could be found (are you missing a using directive or an assembly reference?)
  </code></pre>
  
  <p><img src="https://i.imgur.com/cC3Kxl.png" alt="alt text"></p>
  
  <p>What am I doing wrong?</p>