form1.frm

来自「Windows API函数,希望大伙有用哦」· FRM 代码 · 共 40 行

FRM
40
字号
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "Form1"
   ClientHeight    =   1485
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   4680
   LinkTopic       =   "Form1"
   ScaleHeight     =   1485
   ScaleWidth      =   4680
   StartUpPosition =   3  '窗口缺省
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private WithEvents Timer1 As ccrpTimer
Attribute Timer1.VB_VarHelpID = -1
Dim I As Integer
Private Sub Form_load()
Set Timer1 = New ccrpTimer
   With Timer1
      .EventType = TimerPeriodic
      .Interval = 10
      .Stats.Frequency = 1
      .Enabled = True
   End With
End Sub
Private Sub Timer1_Timer(ByVal Milliseconds As Long)
 I = I + 1
 If I = 100 Then
   Timer1.Enabled = False
   MsgBox "  定时时间到 !  "
   Unload Me
End If
End Sub

⌨️ 快捷键说明

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