title: using the value of the ValueMember property
body: <p>I am trying to retrieve the value stored in the "ValueMember" property of a ComboBox. I followed the advice from the following post: <a href="https://stackoverflow.com/questions/15982929/how-to-get-valuemember-value-from-combobox-c-sharp-winforms">How to get ValueMember value from ComboBox C# Winforms?</a></p>
  
  <p>Unfortunately it's not working. Below is my code:</p>
  
  <pre><code>Private Sub LoadCategoryCombo()
      Dim ds As New DataSet
  
      ds = GetCategoryData()
  
      If Not IsNothing(ds) Then
          cmbCategory.DataSource = ds.Tables(0)
          cmbCategory.DisplayMember = "category"
          cmbCategory.ValueMember = "abbrev"
      End If
  End Sub
  </code></pre>
  
  <p>What I'm trying to do is When I select a value from the dropdown list, I wish to display the value stored in the "ValueMember" field, however, it just displays "abbrev". What am I doing wrong?</p>
  
  <p>Thanks,</p>