如当前焦点为COMMAND1
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
if keycode=13 then
command1_click
endif
End Sub
Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
if keycode=13 then
command1_click
endif
End Sub
if keycode=13 then
SendKey="{tab}"
endif
End Sub