[问答题] 编写如下事件过程: Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)   Print Chr(KeyCode)

17 查阅

[问答题] 编写如下事件过程:

Private Sub Form_KeyDown(KeyCode As Integer,Shift As Integer)

  Print Chr(KeyCode)

End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)

  Print Chr(KeyAscii)

End Sub

在一般情况下(即不按住“Shift”键和锁定大写键时)运行程序,若按“T”键,则程序输出的结果是

参考答案:

C

请复习KeyPress事件和KeyDown事件各参数的含义。

计算机考试