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

📄 测试鼠标事件.frm

📁 VB源码,是初学者的福因.让你很快掌握VB编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   3345
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   4755
   KeyPreview      =   -1  'True
   LinkTopic       =   "Form1"
   ScaleHeight     =   3345
   ScaleWidth      =   4755
   StartUpPosition =   3  '窗口缺省
   Begin VB.Label Label14 
      Height          =   375
      Left            =   3240
      TabIndex        =   13
      Top             =   2880
      Width           =   735
   End
   Begin VB.Label Label13 
      Height          =   255
      Left            =   1800
      TabIndex        =   12
      Top             =   2880
      Width           =   1455
   End
   Begin VB.Label Label12 
      Height          =   495
      Left            =   3480
      TabIndex        =   11
      Top             =   2280
      Width           =   615
   End
   Begin VB.Label Label11 
      Height          =   375
      Left            =   240
      TabIndex        =   10
      Top             =   2280
      Width           =   3495
   End
   Begin VB.Label Label10 
      Height          =   375
      Left            =   3360
      TabIndex        =   9
      Top             =   1680
      Width           =   615
   End
   Begin VB.Label Label9 
      Height          =   375
      Left            =   240
      TabIndex        =   8
      Top             =   1680
      Width           =   3375
   End
   Begin VB.Label Label8 
      Height          =   375
      Left            =   3360
      TabIndex        =   7
      Top             =   1200
      Width           =   615
   End
   Begin VB.Label Label7 
      Height          =   375
      Left            =   1680
      TabIndex        =   6
      Top             =   1200
      Width           =   1575
   End
   Begin VB.Label Label6 
      Height          =   375
      Left            =   3360
      TabIndex        =   5
      Top             =   720
      Width           =   615
   End
   Begin VB.Label Label5 
      Height          =   255
      Left            =   240
      TabIndex        =   4
      Top             =   720
      Width           =   3135
   End
   Begin VB.Label Label4 
      Height          =   255
      Left            =   4560
      TabIndex        =   3
      Top             =   120
      Width           =   495
   End
   Begin VB.Label Label3 
      Height          =   255
      Left            =   2760
      TabIndex        =   2
      Top             =   120
      Width           =   1815
   End
   Begin VB.Label Label2 
      Height          =   255
      Left            =   1800
      TabIndex        =   1
      Top             =   120
      Width           =   375
   End
   Begin VB.Label Label1 
      Height          =   255
      Left            =   240
      TabIndex        =   0
      Top             =   120
      Width           =   1455
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
   Label1.Caption = "你按下的键是:"
   Label2.Caption = Chr$(KeyCode)
   Label5.Caption = "KeyDown事件发生了,KeyCode的值为:"
   Label6.Caption = KeyCode
   Label7.Caption = "Shift的值为:"
   Label8.Caption = Shift
End Sub

Private Sub Form_KeyPress(KeyAscii As Integer)
   Label9.Caption = "KeyPress事件发生了,KeyASCII的值为:"
   Label10.Caption = KeyAscii
End Sub

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
   Label3.Caption = "你放开的键是:"
   Label4.Caption = Chr$(KeyCode)
   Label11.Caption = "KeyUp事件发生了,KeyCode的值为:"
   Label12.Caption = KeyCode
   Label13.Caption = "Shift的值为:"
   Label14.Caption = Shift
End Sub

Private Sub Label6_Click()

End Sub

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -