Private Sub Text1_KeyDown(KeyCode As Integer,Shift As Integer)
Print Chr(KeyCode)
E.nd Sub
Private Sub Text1_KeyUp(KeyCode As Integer,Shift As Integer)
Print Chr(KeyCode+2)
程序运行后,把焦点移到文本框中,此时如果敲击“A”键,则输出结果为。
A.A
A.
B.A
B.
C.A
C.
D.A
D.