[求助]\如何實快捷鍵?
如有控件command1我想實現當按下enter+ctrl時,相當於用鼠標點下command1
請問如何實現?
謝謝啦!
将Form的KeyPrieview属性设为True(窗体最先发生键盘事件) Option Explicit
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