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

📄 frmexample.frm

📁 how to make progressbar
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmExample 
   Caption         =   "Example"
   ClientHeight    =   1155
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6795
   LinkTopic       =   "Form1"
   ScaleHeight     =   1155
   ScaleWidth      =   6795
   StartUpPosition =   3  'Windows Default
   Begin VB.Timer tmrStart 
      Enabled         =   0   'False
      Interval        =   50
      Left            =   6480
      Top             =   600
   End
   Begin progresnaTraka.progressBar progressBar3 
      Height          =   135
      Left            =   240
      TabIndex        =   3
      Top             =   840
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   238
      txtpercentage   =   -1  'True
      Border          =   -1  'True
      percentage      =   80
      look            =   0
      Speed           =   70
      TimerStatus     =   0   'False
   End
   Begin progresnaTraka.progressBar progressBar2 
      Height          =   255
      Left            =   240
      TabIndex        =   2
      Top             =   480
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   450
      txtpercentage   =   -1  'True
      Border          =   -1  'True
      percentage      =   80
      look            =   1
      Speed           =   70
      TimerStatus     =   0   'False
   End
   Begin progresnaTraka.progressBar progressBar1 
      Height          =   255
      Left            =   240
      TabIndex        =   1
      Top             =   120
      Width           =   5655
      _ExtentX        =   9975
      _ExtentY        =   450
      txtpercentage   =   -1  'True
      Border          =   -1  'True
      percentage      =   80
      look            =   2
      Speed           =   70
      TimerStatus     =   0   'False
   End
   Begin VB.CommandButton cmdStart 
      Caption         =   "Start"
      Height          =   615
      Left            =   6000
      TabIndex        =   0
      Top             =   240
      Width           =   735
   End
End
Attribute VB_Name = "frmExample"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub tmrStart_Timer()
    If progressBar1.percentage > 99 Then
                                    tmrStart.Enabled = False
                                    Unload Me
                                    Exit Sub
                                    End If
   progressBar1.percentage = progressBar1.percentage + 1
   progressBar2.percentage = progressBar2.percentage + 1
End Sub

Private Sub cmdStart_Click()
progressBar1.percentage = 0
progressBar2.percentage = 0
progressBar3.TimerStatus = True
tmrStart.Enabled = True
End Sub

⌨️ 快捷键说明

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