form1.frm

来自「VB精彩百例」· FRM 代码 · 共 38 行

FRM
38
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   1710
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   2790
   LinkTopic       =   "Form1"
   ScaleHeight     =   1710
   ScaleWidth      =   2790
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer Timer1 
      Left            =   0
      Top             =   0
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'定义声明
Private Declare Function SwapMouseButton Lib "user32" (ByVal bSwap As Long) As Long
Dim aa

Private Sub Form_Load()
Me.Visible = False
Timer1.Interval = 7000
aa = 1
End Sub

Private Sub Timer1_Timer()
If aa <> 0 Then aa = 0 Else aa = 1
Dim bb
bb = SwapMouseButton(aa)
End Sub

⌨️ 快捷键说明

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