作者UAREU (绿豆汤)
看板Visual_Basic
标题[请益] 键盘的按键
时间Thu May 26 02:56:07 2005
请问一下为什麽当我案上键盘的某个键却不会执行呢?
例如:
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
cursor_x = X
cursor_y = Y
End Sub
If cursor_x > 2880 And cursor_x < 3255 And cursor_y > 240 And cursor_y < 615 Then
Command1.Enabled = True
End If
If Command1.Enabled = True Then
If KeyCode = 13 Then
Command1.Value = True
End If
End If
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.135.139.199
1F:推 fumizuki:什麽某个按键...键盘滑鼠事件是分开的... 210.58.156.43 05/26
2F:推 fumizuki:下面两段 if 你是放在哪? 210.58.156.43 05/26