VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "键盘与鼠标"
   ClientHeight    =   2355
   ClientLeft      =   60
   ClientTop       =   450
   ClientWidth     =   4380
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   14.25
      Charset         =   134
      Weight          =   700
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   ForeColor       =   &H000000FF&
   LinkTopic       =   "Form1"
   ScaleHeight     =   2355
   ScaleWidth      =   4380
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_DblClick()
    Me.Cls                      '清除窗口显示的文字
    Print                       '打印一个空行
    Print "鼠标被双击！"        '在窗体中显示文字"鼠标被双击！"
End Sub


Private Sub Form_KeyPress(KeyAscii As Integer)
    Me.Cls
    Print
    Print "键盘上的 "; Chr$(KeyAscii); " 键被按下"   '在窗体上显示键盘按键信息
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Me.Cls
    Print
    Print "鼠标当前位置为"; X; ","; Y           '在窗体上显示鼠标位置
End Sub
