Click here to Skip to main content
15,868,141 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
So I know I can read the code from my BarCode reader into an active Textbox
I also can wait for the line feed signal from my reader - therefore I know when the reader is done .
But here is my question:
Is there a way to filter out the device that's sending the actual keystrokes ?
= I'd like to prevent the operator from entering values (with the keyboard) while I'm waiting for the barcode reader to be done.

Can that be done ? Any Ideas ?

Thanks

Georg
Posted
Comments
Sergey Alexandrovich Kryukov 2-Nov-12 23:06pm    
This question was asked a few times; and I don't remember if it was answered. I never had a reader in my hands, so I cannot answer, but you can run it all under debugger and look thoroughly at the samples of event arguments parameters; maybe you will spot the difference. Funny, this type of scanner interface (called "keyboard wedge") was created to make it "easier". How typical!
--SA
Akinmade Bond 3-Nov-12 9:56am    
Set the textbox readonly property.

Hi Georg,

you can make that Textbox property as Readonly and the input to be to be taken from the device can be stored there and no effect on that textbox by keyboard strokes on that textbox.
 
Share this answer
 
you can check key strock code on textbox keyup event if working on windows application and can also cancel this event. using this you can prevent user to type any thing in that text box. or simply if you want from user to not insert data in that u can use readonly property of textbox......
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900