vb.net - Combobox.items.contains does not return correct result -


my code follows:

dim txt combobox = directcast(sender, combobox) if e.keycode = keys.enter or e.keycode = keys.tab     if not txt.items.contains(txt.text)         msgbox("items not in list")         txt.focus()         exit sub     end if end if 

if enter valid or invalid value , throws error. don't understand happening. tried list combo box value shows "system.data.datarowview"` although drop down contains valid values. please advise.


Comments

Popular posts from this blog

Change php variable from jquery value using ajax (same page) -

Pull out data related to my apps from Android Play Store and iOS App Store -

How can I fetch data from a web server in an android application? -