Click here to Skip to main content
15,886,110 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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.
 
Share this answer
 
Comments
abhishek from jodhpur 9-Dec-12 2:42am    
my scanner is usb scanner.
OriginalGriff 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 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 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900