Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
所以我有这个代码来注册我的按键 CTRL + Numpad1
If e.KeyCode = Keys.NumPad1 AndAlso e.Modifiers = Keys.Control Then Label1.Text = "Hello" End If
但这仅在此窗口为焦点时才会注册,例如,如果我像游戏一样玩,程序将不会注册 Ctrl + NumPad1。
谢谢
此页面演示了深入到 Win32 API 的过程。