⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form1.frm

📁 本文件包含200个visual baisc实例
💻 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 + -