VB 组合control和A键,keyup时,触发事件怎么写?注意是“up”而不是”down"时。

2025-03-01 02:33:07
推荐回答(1个)
回答1:

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 65 And Shift = 2 Then
    MsgBox "你刚才按的是Ctrl+A键!"
End If
End Sub