Heinser Diaz
Heinser Diaz

Reputation: 123

Prevent keyboard input but allow automatic scanner input on textbox

Hello everyone I'm using a RFID scanner that puts the scanned code in whatever text field available at scanning time. For instance, it could put the text inside a cell in Excel or in the address bar of a web browser.

I made an application with a textbox that receives the input sent by the scanner, but I want to disable user-input (keyboard). I tried setting the textbox property "read only" to true, but then the text is not displayed in the textbox.

How can I do that? Thanks in advance :)

Upvotes: 0

Views: 1816

Answers (1)

Travis
Travis

Reputation: 10547

Most barcode scanners are just keyboard input. This would could be done via intercepting HID calls or intercepting key press events in the input box. I wouldn't expect that to work well, but good luck.

Upvotes: 1

Related Questions