Winforms disabling keyboard input on textbox but keeping textbox enabled

后端 未结 2 1890
醉话见心
醉话见心 2021-01-21 08:27

The scenario is like that;

I need to disable textbox to take input from user by keyboard. But textbox should take inputs using kind of devices

2条回答
  •  没有蜡笔的小新
    2021-01-21 09:06

    Maybe you need to track 'keyboard press' event? I don't think what automatically pasting something will trigger 'keyboard press' event.

提交回复
热议问题