为什么我运行时是要按确定后才能在文本框出现按下的字母?
应该要先在文本框出现字母 再弹出提示框的
代码:
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii >= 97 And KeyAscii <= 122 Then
MsgBox "你按下了小写字母" & Chr(KeyAscii) & "!"
End If
If KeyAscii >= 65 And KeyAscii <= 90 Then
MsgBox "你按下了大写字母" & Chr(KeyAscii) & "!"
End If
End Sub
请问哪出错啦?谢谢!