如何检查Control + Z是否被按下? 我设法检查何时按下一个键,但显然我不能同时检查两个键。
答案 0 :(得分:3)
Trap KeyDown事件:
Private Sub Form1_KeyDown(ByVal sender As System.Object, ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase.KeyDown
If ((e.KeyCode = Keys.Z) AndAlso e.Control) Then
(do what you need)
End If
End Sub