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
Post a Comment