Getting Combo box Text value

tcl4p

Well-known member
Joined
Feb 29, 2008
Messages
48
Programming Experience
1-3
I'm trying to get the text portion of the combo box when a value is selected. I can get the selected value, but if I look at the selectedText or Text property the value is "".
Thanks,
Tom

I'm using the following code:
Private Sub cboVendorSearch_SelectionChangeCommitted(ByVal sender As Object, ByVal e As System.EventArgs) Handles cboVendorSearch.SelectionChangeCommitted

clsVendor.ID = Me.cboVendorSearch.SelectedValue
me.lblVendorName.text = me.cboVendorSearch.SelectedText or simply me.cboVendorSearch.text

End Sub
 
Back
Top