Texbox input, disable for keyboard, keep for barcode scanner

前端 未结 2 417
说谎
说谎 2021-01-28 19:07

I have made a Windows Form application with a textbox. I will force users to use the barcode scanner, so the keyboard input should be disabled. The KeyPressed event does not wor

2条回答
  •  遥遥无期
    2021-01-28 19:15

    You can find the way to check with keysUp and Keysdown event.

    Check here for detailed answer.

    Check here for answer

    Check here for github code

提交回复
热议问题