A co-worker of mine is trying to work with barcodes to scan a part.
For instance:
#10 Flat Screw
12" Heater Bar
etc.

The longest part name we have, currently, is 97 characters. This produces a barcode which is much too long for our scanners to read. So, we were thinking we could just print the ID from the database(no more than 7 characters) as a barcode. However, we'd also like to allow the user to manually type in the part name.

Currently, he scans the part name, which puts the part name in the text box, and then runs queries based on that. You can also type and then press Enter to achieve the same result. However, we can't determine if the text that is in the textbox was typed manually or scanned.

This is all done in the KeyUp event of the textbox. If there were a system variable of something to denote that the text is coming from the scanner or a way to just get to the scanned data, we could handle that and still allow them to type manually.