The barcode scanner returns a series of integers following an enterkey. So, you can do this without any other user inputs by just detecting the enterkey in a textbox Keypress event. Here's a pseudo-code sample:
// place this in a textbox_keypress event where you are planning to capture the barcode.
if KeyAscii = 13 then // keyascii is the current user key being pressed in the textbox and 13 is the ascii code for the enter key
barcode = thisTextbox.Text // store the inputted barcode number into a variable
// process the barcode...
Paul June A. DomagTuesday, January 10, 2006 1:36 PM
I'm using USB or PS/2 attached barcode reader. Both readers work as a keyboard. It can be customized on the reader what to send before the barcode and after the barcode. For example if you need a TAB before the barcode and an ENTER after the barcode, it's a simple sonfiguration of the barcode scanner.
To print barcodes I use Truetype fonts (don't forget to put an asterisk before and after the barcode text).
Wednesday, January 11, 2006 8:02 AM