Click here to Skip to main content
15,906,766 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Sascha Lefevre.
sir,
I want to barcode scan only for one textbox you added in your above solution three textbox .. but I want and I have only one textbox for barcode scan... plz modify it for one textbox … when I scan barcode the product should add and textbox again ready for next scan.... no enter required... plz thanks in advance


What I have tried:

<pre>Sascha Lefevre.
sir,
I want to barcode scan only for one textbox you added in your above solution three textbox .. but I want and I have only one textbox for barcode scan... plz modify it for one textbox … when I scan barcode the product should add and textbox again ready for next scan.... no enter required... plz thanks in advance
Posted
Updated 19-Jul-18 21:28pm

1 solution

Don't post this under Quick Answers - if you got the code from an article, then there is a "Add a Comment or Question" button at the bottom of that article, which causes an email to be sent to the author. They are then alerted that you wish to speak to them.
Posting this here relies on them "dropping by" and realising it is for them.

But ... most barcode scanners are configured to emulate a keyboard by default, and you cannot tell the difference between scan data and typed data - Windows does not provide that information to applications at all.

The only way to do what you want is to reconfigure your scanner to provide "lead in" and "trail out" sequences that your app can detect and use to force the input to a specific textbox, then action it when complete. To find out how to add those sequences, you need to consult the scanner documentation, or talk to the manufacturers as the process is different for each manufacturer (even even for each model).
 
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