I'm having a hard time figuring out how to reference the value of the ValueMember property of a combobox. I'm using a dataset that I pull from a sql server; i'm able to get the text for the DisplayMember ok, but when I try to display the ValueMember it just gives me "fid".
How do I display the value associated with ValueMember?
Dim conFrequencies As New SqlConnection(conStringFrequencies)
Dim daFrequencies As New SqlDataAdapter(strSQLFrequencies, conFrequencies)
Dim dsFrequencies As New DataSet
.DisplayMember = "name"
.ValueMember = "fid"
.DataSource = dsFrequencies.Tables("Frequencies")
.SelectedIndex = 0