>dear all,
>
>i have a problem in using barcode scanner.
>i want my text box is cannot be input by keyboard, only with barcode scanner.
>i have tried to block the numeric keypad by disabling the num lock key.
>but still they can access with the numeric button above the character button.
>is there any trick to disable keyboard press, or disable the keyboard access.
>
>regards,
>
>
>Ivan Agusta
After reading the other replies I think I have found a way around this problem.
Using a barcode scanner the scanned barcode will be 'typed' into the text box very fast (compared to a user entering the barcode on the keyboard). So if you can somehow measure the time it takes from the first text box input until the last input you could determine if it was the scanner or the user using the keyboard. Might not be 100% accurate but the longer the barcode string is the more accurate it should be.
Just my $0.02
Einar
Semper ubi sub ubi.