, it’s a USB scanner. From programmer’s point of view, it can be either a keyboard wedge or a serial port scanner.

Ours was wedge scanner. If we want to intercept the barcode input , for instance for validation or some logic decision where to show the input , then you should catch the Ctrl+b event , initialize a flag saying you’re now reading the barcode . On each KeyPress you’ll hit , if it’s not “Enter” (the end of Barcode input) and the flag of (Ctrl+b) (Start Barcode Read) is true , add each time add the value to some parameter. When the “Enter” comes you have all the bar code data in the parameter. :