作者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