Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: USB
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 13-Jun-11 22:32pm
Rate this: bad
good
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.
  Permalink  
Comments
ahmadi_roya at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

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
  Permalink  
Rate this: bad
good
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
waqasberet@gmail.com
  Permalink  
Comments
yayaNasr at 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)

  Print Answers RSS
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 235
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,121
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176


Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 24 Apr 2012
Copyright © CodeProject, 1999-2015
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