Click here to Skip to main content
12,945,800 members (54,441 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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 13-Jun-11 21:32pm
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
ahmadi_roya 11-Jul-13 2:38am
I have the same problem is it possible to send me the sample code.
thanks alot
my Email Address is
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

Im having hardtime here in usb barcode scanner.
if it is working on ur end

Please send me ur sample code
Rate this: bad
Please Sign up or sign in to vote.

Solution 3

can u send me the article link? about bar-code reader?
and can u please send me the source code at
yayaNasr 8-Sep-12 17:42pm
i need the source code too that is my mail

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month
OriginalGriff 4,899
CHill60 3,180
Maciej Los 2,453
Jochen Arndt 1,910
ppolymorphe 1,785

Advertise | Privacy | Mobile
Web02 | 2.8.170518.1 | Last Updated 24 Apr 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100