• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 186
  • Last Modified:

Barcode Recognition

Hello,
I would like to interface my VB application with a barcode scanner. The scanner scans for a serial number on a certain product. How could I get the number displayed in a text box within my application.
Thanks
Zack
0
tzachari
Asked:
tzachari
  • 2
1 Solution
 
mcriderCommented:
Barcode scanners operate as Keyboard Wedges.  When they scan the barcode, they convert the code they scan into keyboard input...

All you have to do is set focus to the field you're going to accept the scanned code into...  It's just like you typed the code on the keyboard...


Cheers!
0
 
tzachariAuthor Commented:
But, how do you retreive the scanned number that is residing somewhere inside the computer into the textbox!
Thanks
0
 
mcriderCommented:
A PC without a barcode scanner is connected with a cable like this:


   KEYBOARD]--------->PC_KEYBOARD_PORT


A PC with a barcode scanner is connected is cabled like this:

   KEYBOARD]--------->SCANNER]--------->PC_KEYBOARD_PORT


You have an application that has a textbox.  When you focus on that textbox, it DOESN'T matter if you type information in at the keyboard, or use the scanner...  The system will put the characters into the textbox.  What you do with the text is up to your application, and has nothing to do with whether you have a scanner attached or not...


Cheers!
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now