Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have multiple textbox but i want go to specific textbox after scan from barcode.
barcode scan to specify textbox focus,scan anywhere on form vb.net.


What I have tried:

<pre>
i have multiple textbox but i want go to specific textbox after scan from barcode.
barcode scan to specify textbox focus,scan anywhere on form vb.net.
Posted
Updated 10-Jan-17 23:35pm
Comments
Richard MacCutchan 11-Jan-17 4:49am    
I guess there is a question in there somewhere.

1 solution

We can't really answer that with a definitive answer: most barcode scanners ship configured to act as a keyboard, and you can't tell directly from the input which device the data has come from - which means that if your user starts typing, the focus would shift to the "barcode data" text box as well, and that would annoy a huge number of people.

However, it is usually possible to configure the scanner to give a "lead-in" and "tail-out" character or sequence which you should be able to detect in your code and set the focus appropriately. Exactly what the character or sequence is, and how you enable the option will be different for each manufacturer (and often different models as well).
Contact the manufacturer of your scanner, and ask them: most provide technical support and will be used to the question!
 
Share this answer
 
v2

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