handling function key press

前端 未结 1 920
遇见更好的自我
遇见更好的自我 2020-12-03 01:25

I have a C# form with 5 buttons. The users enters the information and depending on the press of a function key, a specific action is performed. F9-Execute Order,

相关标签:
1条回答
  • 2020-12-03 02:00

    You need to set

    KeyPreview=True
    

    for your form. Otherwise key press is swallowed by the control that has focus.

    0 讨论(0)
提交回复
热议问题