I have 2 populated list boxes on my VB.NET form and need to add the displayed values from each to my database based on the value member not the display member. Each list box is populated from a seperate data table and I have found that the below method does not work (as the variable rob returns the value"class_id":
rob = lstClass.valueMember
This returns the value "class_id" because above lines read:
lstClass.DataSource = dtLicenceClass
lstclass.valueMember = "class_id"
Can anyone help?
Thanks in advance.