1个回答
2013-10-30
展开全部
这段代码可以。如果按下CTRL键那就输出 你好帅 Private Sub Form_KeyPress(KeyAscii As Integer)
If KeyCode = 17 Then
Print "你好帅"
End If
End SubPrivate Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 17 Then
Print "你好帅"
End If
End Sub
If KeyCode = 17 Then
Print "你好帅"
End If
End SubPrivate Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 17 Then
Print "你好帅"
End If
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询