954,557 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Connecting Bar code scanner to VB 6.0

I was thinking if someone could help me to connect the Bar code scanner with Visual Basic 6.0?

Help me please.!

bantex07
Newbie Poster
22 posts since Feb 2010
Reputation Points: 8
Solved Threads: 0
 

how do you want to connect it, via a serial port or USB

ChrisPadgham
Posting Pro in Training
413 posts since Sep 2009
Reputation Points: 102
Solved Threads: 78
 

No need to connect the Bar code scanner with Visual Basic. What you need to do is use the device to the system and use it. Bar code scanner work like a simple input device (like keyboard) attached to the system. It simply scans the code and puts the code into any control having focus. No need of any special coding for that. You may need to use some library (usually provided by the vendor of the device) to process the code captured from the device.

debasisdas
Posting Genius
6,872 posts since Feb 2007
Reputation Points: 666
Solved Threads: 434
 

Thx a lot Guy's Hmp... i have one more Question
How can i code the search as u type in vb6.0 and connect it in MS acces can you help me? Thx GOD SPEED

bantex07
Newbie Poster
22 posts since Feb 2010
Reputation Points: 8
Solved Threads: 0
 

use a combo box linked to a database field

ChrisPadgham
Posting Pro in Training
413 posts since Sep 2009
Reputation Points: 102
Solved Threads: 78
 

Mr debasisdas is right about the bar code reader, its just like a ordinary input
you will need to focus the insertion point or mouse pointer to the textbox in able to input the code that will be scanned by the bar code,

about the search just use the SQL code
Adodc1.RecordSource = "Select * from myTable where myField like '%" + txtSearch.Text + "%'"
Adodc1.Refresh

im using the code above in a textbox_change() event

xtianenikkian
Light Poster
39 posts since Sep 2008
Reputation Points: 11
Solved Threads: 3
 

Dear Friend
First install the setup file of the scanner if required. In most of the barcode scanners there is no setup or installation for the devices.
When you connect it to the Computer, the machine will automatically detect the device. The Barcode Scanner is nothing nut a small device which reads the text besided in the Barcode Letter. This works like a mouse or any external devices like keyboard, usb devices.
It reads the code/characters from the barcode strip or letter, which are not possible by human eyes.
While reading there is some specification of the range of the barcode scanner, generally it is in inches/centimeters.
For testing the barcode scanner's working
Connect the barcode scanner to your system,
Move barcode scanner on any product/barcode strip of the product.
Set your cursor into the Text Box/ Combo Box of Visual Basic Form
Otherwise try with Notepad File.

Deepak Shitole
Newbie Poster
10 posts since Jul 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: