把窗体的KeyPreview属性设置为True,并编写如下两个事件过程: Private Sub For_KeyDown(KeyCode As Integer,Shift As Integer)Print KeyCode End Sub Private Sub Fora_KeyPress(Key Ascii AS Integer)Print Key Ascii。 End Sub 程序运行后,如果按
主观题
把窗体的KeyPreview属性设置为True,并编写如下两个事件过程: Private Sub For_KeyDown(KeyCode As Integer,Shift As Integer)Print KeyCode End Sub Private Sub Fora_KeyPress(Key Ascii AS Integer)Print Key Ascii。 End Sub 程序运行后,如果按