BlackburnKL
Programmer
I am designing a form for an application in C# 2005 which receives input from a USB barcode scanner (which seems to treat the data as if it had been entered from the keyboard--without the usual key down/up/press events, of course).
I would like to be able to allow the user to scan multiple barcodes (with unique data lengths for each type of data I want to capture) and allow the program to trap the incoming data stream and determine its length and to programmatically place it into its corresponding control on the form.
For simplicity's sake, let's assume that I want to scan product codes and defect code for a quality inspection. Let's further assume that I have a single TextBox on my form (for receiving the input from the scanner) and two labels on my form (one for displaying the product codes scanned and another for displaying the defect codes scanned).
I simply want to scan a product code, then all of the defect codes for that quality review of that product, then scan the next product code and its defect codes, etc. Scanning two product codes in a row would indicate no defects found. Scanning a defect code prior to any product code would be rejected by the programming.
BlackburnKL
I would like to be able to allow the user to scan multiple barcodes (with unique data lengths for each type of data I want to capture) and allow the program to trap the incoming data stream and determine its length and to programmatically place it into its corresponding control on the form.
For simplicity's sake, let's assume that I want to scan product codes and defect code for a quality inspection. Let's further assume that I have a single TextBox on my form (for receiving the input from the scanner) and two labels on my form (one for displaying the product codes scanned and another for displaying the defect codes scanned).
I simply want to scan a product code, then all of the defect codes for that quality review of that product, then scan the next product code and its defect codes, etc. Scanning two product codes in a row would indicate no defects found. Scanning a defect code prior to any product code would be rejected by the programming.
BlackburnKL