VB屏毕键盘输入

来源:百度知道 编辑:UC知道 时间:2024/05/17 08:12:40
就是当程序打开后所有输入都无效,包括组合键(比如CTRL+F4)

Private Sub Form_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub

Private Sub Form_Load()
Me.KeyPreview = True

End Sub

取消所有控件的“焦点获得”也能得到同样的效果

hook键盘 吃掉所有消息?