Click here to Skip to main content
15,916,463 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have txtbox in which i scan barcode for e.g
21/p/2156 this is my bag number

so after scan i wish to fire my sql qeury

What I have tried:

i already try

key down event and leave event in vb
Posted
Updated 24-Jul-21 1:29am

1 solution

Unless your scanner is configured to give you an "end of data" sequence your textbox doesn't know if data is typed or scanned - most scanners come preconfigured to act like keyboards, and Windows does not store any "originated from" information.

Check with your manufacturer and set your scanner to give particular "lead in" and "tail out" sequences that your code can detect - you can then use them to trigger your query.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900