I have 2 keyboards hooked up to my machine (one on PS/2, the other on USB). How would I determine which keyboard is sending the keystrokes in C#?
I'm guessing the problem is that when the barcode scanner is used, the number is going into the active field rather than the field for the bar code ID?
One solution would be to hook the other fields' OnChange events and look for a barcode number inserted in them (via RegEx). If found, move the barcode out of that field and move the value over to the barcode field.
No device access required, this could even be done on a Javascript-driven web page.