Click here to Skip to main content
11,496,146 members (392 online)
The site is currently in read-only mode for maintenance. Posting of new items will be available again shortly.
See more: VB.NET
I need to add barcode reading feature to my application. I donot know how to enable my application to read barcodes.
I mean a scanner should read the barcode and having matched the article no. in database, info should be displayed on the screen.
Any code examples please?

Thanks
Posted 15-Oct-11 6:26am
Normally, this is not a problem - most barcode readers just plug in and act as a secondary input device. So when you want the barcode, you scan and the Article Number is entered as if it had been typed at the keyboard. It is often possible to configure them to use special prefixes, or to talk only when spoken to, but that requires a good read of the manul, or a talk to the manufacturer.

So. You don't need any code - it acts as a keyboard!
  Permalink  
Comments
kfsehgal at 15-Oct-11 12:00pm
   
Thanks ! but how shall I specify which field or textbox on my form the article no. goes, when read using a barcode scanner?
OriginalGriff at 16-Oct-11 3:02am
   
Will depend on your scanner: talk to your manufacturer. Normal operation is that the data just comes in as a sequence of keystrokes - so you can't make it go anywhere unless the text cursor is there.
davfeu at 17-Oct-11 5:46am
   
Most barcodescanners are configurable to use a start- and/or stop(key/keysequence). So you could use that to determinate if the input is a barcode or not.

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 10,401
1 OriginalGriff 8,910
2 Sascha Lefèvre 3,899
3 Maciej Los 3,422
4 Richard Deeming 2,600


Advertise | Privacy | Mobile
Web02 | 2.8.150520.1 | Last Updated 27 May 2015
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