Click here to Skip to main content
15,886,689 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,

I have a problem with reading text from USB barcode scanner. I found an article about this in code project itseif. Its working pretty much fine here. But problem is at the client place they are using the USB keyboard. So My code not differenciating the input from keyboard or scanner.Both are identifying as HID devices. I need to read data to a particular text box only from the sacnner.This is very much required for me. please reply me if any suggesstions ..
Posted

As a barcode scanner typically provides input as if it came from the keyboard, I don't think there's really anything you can do. The whole point of a USB device is that it integrates, not that it identifies itself. Unless you can identify the device from the EventArgs you're sent in the keypress event, I'd say you are hosed, in C# at least.
 
Share this answer
 
Comments
ahmadi_roya 11-Jul-13 2:38am    
Hi
I have the same problem is it possible to send me the sample code.
thanks alot
my Email Address is ahmadi_roya@ymail.com
HI Im having hardtime here in usb barcode scanner.
if it is working on ur end

Please send me ur sample code
thanks

basith7861@gmail.com
 
Share this answer
 
can u send me the article link? about bar-code reader?
and can u please send me the source code at
waqasberet@gmail.com
 
Share this answer
 
Comments
Yasser El Shazly 8-Sep-12 17:42pm    
i need the source code too that is my mail Eng.Y3MN@Yahoo.com

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