请教一个键盘响应的问题
我写的
Private Sub Command1_KeyPress(KeyAscii As Integer)
If keycode = 37 Then
MsgBox (KeyAscii)
End If
End Sub
'37为左方向键
可是失败了,根本不能得到响应
又尝试
Private Sub Command1_KeyPress(KeyAscii As Integer)
MsgBox ("hello")
End Sub
再次失败.......
望高手赐教应该如何写才可以得到键盘响应呢?
还有我用别的软件看键盘的各个键值,发现很多键的keyascii的值都是0,象keypress这样的事件我用keycode可以吗?