How to Block Keyboard Keys in a textbox .. ?
-
hi friends, How to Block keyboard key in value to TextBox but barcode scanner still can use..? Thanks in Advance. Cheers
textBox.ReadOnly = true;
This way the user won't be able to type text in the textbox, but you can still change the text in the code behind:
textBox.Text = "Hello World!";
I don't know if this can be used with a barcode scanner, but give it a try.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
-
hi friends, How to Block keyboard key in value to TextBox but barcode scanner still can use..? Thanks in Advance. Cheers
SamRST wrote:
hi friends, How to Block keyboard key in value to TextBox but barcode scanner still can use..? Thanks in Advance.
If your barcode scanner is a keyboard wedge, I don't think you can do this.
-
SamRST wrote:
hi friends, How to Block keyboard key in value to TextBox but barcode scanner still can use..? Thanks in Advance.
If your barcode scanner is a keyboard wedge, I don't think you can do this.
-
textBox.ReadOnly = true;
This way the user won't be able to type text in the textbox, but you can still change the text in the code behind:
textBox.Text = "Hello World!";
I don't know if this can be used with a barcode scanner, but give it a try.
Kristian Sixhoej
"Failure is not an option" - Gene Kranz
-
By keyboard wedge, I meant that your bar code scanner functions like a keyboard... Looking at your answer to the other poster, it looks like your scanner _is_ a keyboard wedge, in which case you cannot do what you wanted to in your OP.
-
By keyboard wedge, I meant that your bar code scanner functions like a keyboard... Looking at your answer to the other poster, it looks like your scanner _is_ a keyboard wedge, in which case you cannot do what you wanted to in your OP.