Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 2-Nov-12 17:25pm
Comments
Sergey Alexandrovich Kryukov at 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
GeekBond at 3-Nov-12 9:56am
   
Set the textbox readonly property.
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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......
  Permalink  

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

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 3 Nov 2012
Copyright © CodeProject, 1999-2014
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