How can I tell if the code entered in the textbox is in the list txt?

Put all the codes into a list.
Either on text changed or button pressed event just use
is in list thing (textbox text) list(variable)

1 Like