Click here to Skip to main content
13,250,453 members (51,861 online)
Rate this:
Please Sign up or sign in to vote.
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 ?


Posted 2-Nov-12 17:25pm
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!
GeekBond 3-Nov-12 9:56am
Set the textbox readonly property.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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......

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web03 | 2.8.171114.1 | Last Updated 3 Nov 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100