编写如下事件过程: Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer) Print Chr(KeyCode) End Sub Private SubForm_KeyPress(KeyA

admin2010-11-20  17

问题 编写如下事件过程:
Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)
Print Chr(KeyCode)
End Sub
Private SubForm_KeyPress(KeyAscii As Integer)
Print Chr(KeyAscii)
End Sub
在一般情况下(即不按住“Shift”键和锁定大写键时) 运行程序,若按“T”键,则程序输出的结果是A

选项 A、T
T

B、t
T

C、T
t

D、t
t


答案C

解析 请复习KeyPress事件和KeyDown事件各参数的含义。
转载请注明原文地址:https://jikaoti.com/ti/meO0FFFM
0

最新回复(0)