vb中的键盘字母的编号

来源:百度知道 编辑:UC知道 时间:2024/06/06 14:22:42
vb中的键盘字母的编号啊?

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
codestr = KeyCode
keystr = Chr$(KeyCode)
Form1.Print "The code of " & keystr & "is :"; codestr
End Sub
用上面的程序在窗体上打印出来就可以了