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

📄 计时器的应用.frm

📁 VB源码,是初学者的福因.让你很快掌握VB编程
💻 FRM
字号:
VERSION 5.00
Begin VB.Form Form1 
   Caption         =   "欢迎你"
   ClientHeight    =   840
   ClientLeft      =   60
   ClientTop       =   390
   ClientWidth     =   2850
   LinkTopic       =   "Form1"
   ScaleHeight     =   840
   ScaleWidth      =   2850
   StartUpPosition =   3  '窗口缺省
   Begin VB.Timer Timer1 
      Interval        =   500
      Left            =   0
      Top             =   360
   End
   Begin VB.Label Label1 
      BackColor       =   &H8000000A&
      Caption         =   "Label1"
      ForeColor       =   &H000000FF&
      Height          =   255
      Left            =   480
      TabIndex        =   0
      Top             =   240
      Width           =   1815
   End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim I As Integer
Private Sub Form_Load()
   Label1.Caption = ""
End Sub
Private Sub Timer1_Timer()
  I = I + 1
  Select Case I
  Case 1
      Label1.Caption = Label1.Caption + "欢 "
  Case 2
      Label1.Caption = Label1.Caption + "迎 "
  Case 3
      Label1.Caption = Label1.Caption + "你 "
  Case 4
      Label1.Caption = Label1.Caption + "来 "
  Case 5
      Label1.Caption = Label1.Caption + "到 "
  Case 6
      Label1.Caption = Label1.Caption + "北 "
  Case 7
      Label1.Caption = Label1.Caption + "京 "
  Case 8
      Label1.Caption = ""
      I = 0
  End Select
End Sub

⌨️ 快捷键说明

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