📄 frm_progressbar.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomctl.ocx"
Begin VB.Form frm_ProgressBar
AutoRedraw = -1 'True
BackColor = &H00FF8080&
BorderStyle = 0 'None
Caption = "Form1"
ClientHeight = 885
ClientLeft = 0
ClientTop = 0
ClientWidth = 2640
FillStyle = 0 'Solid
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 885
ScaleWidth = 2640
ShowInTaskbar = 0 'False
StartUpPosition = 3 '窗口缺省
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 285
Left = 45
TabIndex = 0
Top = 450
Width = 2535
_ExtentX = 4471
_ExtentY = 503
_Version = 393216
Appearance = 0
Scrolling = 1
End
Begin VB.Timer Timer1
Interval = 50
Left = 2115
Top = 45
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "正在提交请求....."
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 240
Left = 450
TabIndex = 1
Top = 90
Width = 1950
End
End
Attribute VB_Name = "frm_ProgressBar"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Private Sub Form_Load()
Move (Screen.Width - Me.Width) / 2, (Screen.Height - Me.Height) / 2 '- 800
End Sub
Private Sub Timer1_Timer()
If ProgressBar1.Value < 100 Then
If ProgressBar1.Value = 90 Then
Label1.Caption = " 操作成功!"
End If
ProgressBar1.Value = ProgressBar1.Value + 10
Else
Unload Me
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -