Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyReturn And Shift = 2 Then
MsgBox "按下了Ctrl+Enter", vbInformation, "提示"
End If
End Sub
以下是引用icecool在2005-3-18 12:26:34的发言:
再問一下哦:
如何在這裡調用COMMAD1_CLICK()呀:
If KeyCode = vbKeyReturn And Shift = 2 Then
MsgBox "按下了Ctrl+Enter", vbInformation, "提示"
End If