Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
me making a shop application now i am facing problem in reading barcode using usb barcode scanner.i am not know ,on which event me read code and pass to database for retrieving data.i am confuse in between 2 events.1 is textchanged ,2 is keydown then keyup event,which one use ?
and
scanner read full code and pass as sting or char by char ?
Posted 7-Dec-12 20:34pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Depends on the scanner, but most of them ship defaulted to generate keyboard input - so you don't need to do anything except ensure that the input is going to the correct place.
 
If that isn't what you want, then you need to look to teh manufacturer of the specific make and model of your scanner for advice.
  Permalink  
Comments
abhishek from jodhpur at 9-Dec-12 2:42am
   
my scanner is usb scanner.
OriginalGriff at 9-Dec-12 3:50am
   
Yes, most of them are - they still default to keyboard input so that most people can just plug in an start.
abhishek from jodhpur at 9-Dec-12 23:56pm
   
ok and scanner pass char by char like keyboard or pass in string form.
if string form then me use textchange event or else other ?
OriginalGriff at 10-Dec-12 3:12am
   
I have no idea - as I said, it can vary from manufacturer to manufacturer. Look at their website!

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

  Print Answers RSS
0 OriginalGriff 6,631
1 Sergey Alexandrovich Kryukov 6,345
2 CPallini 5,230
3 George Jonsson 3,574
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 8 Dec 2012
Copyright © CodeProject, 1999-2014
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