?? form1.frm
字號:
VERSION 5.00
Begin VB.Form Form1
Caption = "為程序添加快捷鍵"
ClientHeight = 2175
ClientLeft = 60
ClientTop = 345
ClientWidth = 4920
LinkTopic = "Form1"
ScaleHeight = 2175
ScaleWidth = 4920
StartUpPosition = 1 '所有者中心
Begin VB.CommandButton Command2
Caption = "退出Ctrl+&E"
Height = 450
Left = 2610
TabIndex = 2
Top = 1545
Width = 1440
End
Begin VB.CommandButton Command1
Caption = "保存Ctrl+&C"
Height = 450
Left = 825
TabIndex = 1
Top = 1545
Width = 1440
End
Begin VB.TextBox Text1
Height = 1245
Left = 405
TabIndex = 0
Text = "Text1"
Top = 150
Width = 4125
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Text1_KeyDown(KeyCode As Integer, Shift As Integer)
If Shift = 2 Then
If KeyCode = 67 Then '鍵入c
MsgBox "保存成功", vbInformation, "保存提示"
End If
If KeyCode = 69 Then '鍵入e
End
End If
End If
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -