Thursday, July 30, 2009

How can i use a barcode reader machine in visual basic programming?

I want to use a barcode reader machine in a visual basic program. for example when barcode reader reads a value how can i show this value in a label?

How can i use a barcode reader machine in visual basic programming?
bar code readers are just like keyboards..


you can have a text box and when the reader scans the barcode, the chars will be typed in the textbox... of course the textbox needs to have the focus...
Reply:You need the drivers for the hardware and a dll to access the hardware.


the device should connect by USB/Parallel/Serial.


The driver gives you a hook into the device and the dll access the device and is your "window" to the device.


the dll should have various methods, events and properties to make it all work.


Otherwise, you are talking about low-level access and you better do a lot of reading about your device and how the hardware connects to get it to do what you want.
Reply:Barcode scanners work exactly like a keyboard. Create your form with a textbox that accepts input. Make your focus on that textbox and scan the code. I'm not sure as I've only worked with them rarely, but you might also be able to have it capture keystrokes and write and algoryhtm to detect if it's a barcode, but thats a little work intensive.

stalk

No comments:

Post a Comment