Click here to Skip to main content
15,888,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi I create my windows form application that i read from barcode reader , fill barcode in textbox1
Now i try to connect another barcode reader at same windows form , and i want to fill read in textbox2
With no need to move the curser by user
I mean i wish if there are any way to read from two barcode at same time in same form with different textbox

What I have tried:

I try to connect one barcode reader and set the default tool textbox1 in form and read from barcode and fill in text box
Posted
Updated 17-Apr-17 13:30pm
Comments
Michael_Davies 17-Apr-17 14:17pm    
You do not give enough information, what kind of scanners?

Are the scanners using direct keyboard input or are they through a manufacturers library?

If they are keyboard emulating then there is no way for them to be simultaneous, you can however differentiate between the devices by setting different lead in characters for the scanners and so long as they do not scan at the same time you can know which scanner scanned the code; by default keyboard emulating scanners do not have a lead-in/out character but you can normally program them to do so. Check the scanners settings.

Basically, we can't help.
Most barcode scanners when shipped are setup to emulate a keyboard, and feed the barcode data directly as if the user had typed it - there is no way to tell when the data arrives at your application where it came from, so you can't direct it to one box or the other.

However, it is normally possible to configure them to provide "Lead in" and "Trailing" characters or sequences which you can use to identify what data is coming, and where it came from.
The bad news is that how you do that depends on the manufacturer (and sometimes the model as well). You will have to contact the people who built your scanner, and ask them for the information - we can't provide it!
 
Share this answer
 
If you're going to use more than one barcode reader on a single machine they better be Ethernet based and not "keyboard wedge" devices.

Why? "Keyboard wedge" devices "type" the code they scan as if they were a keyboard not a scanner. While it is possible to program some of these to pre-pend the code they send with a unique key sequence so you can tell which scanner the code came from. The bigger problem is what if you scan two codes at the exact same time? Both scanners will try to type at the same time and you're going to get a pile of garbage instead of two different codes from the scanners.
 
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