progressbar.frm

来自「图书管理软件,基本功能已具备」· FRM 代码 · 共 98 行

FRM
98
字号
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form ProgressBar 
   BorderStyle     =   0  'None
   Caption         =   "Form1"
   ClientHeight    =   2280
   ClientLeft      =   0
   ClientTop       =   0
   ClientWidth     =   4800
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   Picture         =   "ProgressBar.frx":0000
   ScaleHeight     =   2280
   ScaleWidth      =   4800
   ShowInTaskbar   =   0   'False
   StartUpPosition =   3  '窗口缺省
   Begin MSComctlLib.ProgressBar ProgressBar1 
      Height          =   270
      Left            =   67
      TabIndex        =   0
      Top             =   1365
      Width           =   4688
      _ExtentX        =   8281
      _ExtentY        =   476
      _Version        =   393216
      Appearance      =   0
      Scrolling       =   1
   End
   Begin VB.Timer Timer1 
      Interval        =   50
      Left            =   1680
      Top             =   1725
   End
End
Attribute VB_Name = "ProgressBar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'***************************************************************
'*公司名:华夏学院晨光网络公司
'*系统名:红杉图书信息管理系统
'*程序名:进度
'*程序ID:RL_About
'*版本:1.0.0
'*最后修改时间:2005/4/18
'*修改人:cuitianlong
'*
'*-------------------------------------------------------------
'*  [年月日]        [制造者]
'*-------------------------------------------------------------
'*  2005/4/18       cuitianlong
'*
'***************************************************************
Option Explicit

'***************************************************************
'*  窗体加载
'*
'*  [参数]
'*      无
'*  [返回]
'*      无
'***************************************************************
Private Sub Form_Load()
    On Error GoTo Form_Load
    
    Call Cmn_Form_Center(Me) '窗体居中
    
    Exit Sub
Form_Load:
    MsgBox "Form_Load()---出错", vbCritical, "错误"
End Sub

'***************************************************************
'*  Timer1_Timer
'*
'*  [参数]
'*      无
'*  [返回]
'*      无
'***************************************************************
Private Sub Timer1_Timer()
    On Error GoTo Timer1_Timer
    
    ProgressBar1.Value = ProgressBar1.Value + 2
    
    If ProgressBar1.Value = 100 Then
        Unload Me
    End If
    
    Exit Sub
Timer1_Timer:
    MsgBox "Timer1_Timer()---出错", vbCritical, "错误"
End Sub

⌨️ 快捷键说明

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