Click here to Skip to main content
12,898,516 members (69,924 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# 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 ?
scanner read full code and pass as sting or char by char ?
Posted 7-Dec-12 20:34pm

1 solution

Rate this: bad
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.
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)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 8 Dec 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