Click here to Skip to main content
12,354,543 members (67,302 online)
Rate this:
 
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 21: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 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 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
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160621.1 | Last Updated 24 Apr 2012
Copyright © CodeProject, 1999-2016
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