Texbox input, disable for keyboard, keep for barcode scanner
问题 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 work, because is also disabled input from the barcode scanner. I thought maybe I can set a timer on the TextChanged event, but I do not really know how it works. Have someone a good idea? 回答1: Based on your description, I assume that your barcode scanner is an HID barcode scanner. If so, there is no easy answer here