Using Textboxes and buttons with Barcode Scanners
Posted on 2016-08-30
I have a ASP.net application that uses VB.net for the code behind.
The purpose of this application is to take input from a barcode scanner and input it into a database.
There are 4 textboxes and then a button that write the data to the database.
The problem that I am having is that the barcode scanners are used for another application and that application requires that the barcode scanners record a line feed carriage return each time a value is scanned.
The line feed, carriage return causes the button to execute because it has the focus.
Here is what I need to happen:
1) Barcode is scanned into textbox1 - the application should record the data in textbox #1 and then change the focus to textbox #2.
2) Barcode is scanned into textbox2 - the application should record the data in textbox #2 and then change the focus to textbox #3
3) Barcode is scanned into textbox3 - the application should record the data in textbox #3 and then change the focus to textbox #4
4) Data will be hand keyed into textbox4 - the application will then execute the click button event to write the data.
How can I do #1 thru #4 above taking into account the barcode scanner will have a carriage return line feed each time a value is scanned?