Combobox binded value issue


  • Using the below code I am setting the values I need to a toolstrip embeded combobox.

    When referencing ts_combo_subnetIP.Text i recieve the displaymember text, not the valuemember value.

    Any help would be appreciated to get the valuemember value.

    with ts_combo_SubnetIP.combbox
    .Datasource = subnicinfobingsource
    .ValueMember = "subnetIP"
    .DisplayMember = "SubnetName"
    .BindingContext = Me.BindingContext
    End With

    Thursday, April 13, 2017 3:29 PM


  • Access the SelectedValue property of the ComboBox instead:


    Reed Kimble - "When you do things right, people won't be sure you've done anything at all"

    • Marked as answer by Ryan Lashway Thursday, April 13, 2017 5:12 PM
    Thursday, April 13, 2017 5:03 PM