Categories: MSDN / DotNet / Java / Scripts / Linux / PHP Ask - La ask - La Answer

Code for barcode scanner in vb2005

Hi all,

Currently i am writing my vb2005 application interface with barcode scanner.
Which i do not know what is the code to activate the barcode scanner to scan on the label during the application .

Any help from anyone here is greatly appreciated. I really really need help thank you.

ivan
[324 byte] By [ivanchia] at [2007-11-11 10:05:00]
# 1 Re: Code for barcode scanner in vb2005
The scanner must provide with it some shared dlls which u must refer to it in your application and with a certain class in it u will find where to do startscan event .
Mostly it's provided in your maual how to , but if it's not try the installed dlls one after one till u find it .
Amahdy at 2007-11-11 17:23:19 >
# 2 Re: Code for barcode scanner in vb2005
How does your barcode scanner interface with the PC? Many scanners, for example, use something called a "keyboard wedge": the scanner plugs into the keyboard port on the PC. When an item is scanned, the scanner sends characters to the PC as if they were typed at the keyboard. If that's how your scanner works, you simply read the characters from the scanner just as you would from the keyboard, for example by reading them from the .Text property of a textbox.
Phil Weber at 2007-11-11 17:24:21 >
# 3 Re: Code for barcode scanner in vb2005
Thank both of you Phil Weber and Amahdy , both methods also work.

Thank for your help :)
ivanchia at 2007-11-11 17:25:20 >
# 4 Re: Code for barcode scanner in vb2005
you need not write any special coding for the barcode scanning...mostly if you install the scanner properly, then when you scan a barcode the output will be displayed in the current textbox or whatever control has focus in your app.
ganeshmoorthy at 2007-11-11 17:26:24 >