例[6-20].frm
来自「蒋加伏主编VB程序设计第四版PPT及全部课本源码 北京邮电大学出版社 」· FRM 代码 · 共 72 行
FRM
72 行
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1
Caption = "例[6-20] 进度条示例"
ClientHeight = 3150
ClientLeft = 60
ClientTop = 345
ClientWidth = 3855
BeginProperty Font
Name = "幼圆"
Size = 15
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
LinkTopic = "Form1"
ScaleHeight = 3150
ScaleWidth = 3855
StartUpPosition = 3 '窗口缺省
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 495
Left = 360
TabIndex = 1
Top = 1920
Width = 3015
_ExtentX = 5318
_ExtentY = 873
_Version = 393216
Appearance = 1
End
Begin VB.CommandButton Command1
Caption = "开始"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 495
Left = 1080
TabIndex = 0
Top = 840
Width = 1335
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim i As Long
Dim a(3000) As String
ProgressBar1.Min = LBound(a)
ProgressBar1.Max = UBound(a)
ProgressBar1.Visible = True
ProgressBar1.Value = ProgressBar1.Min
For i = LBound(a) To UBound(a)
a(i) = "数字" & i & " "
ProgressBar1.Value = i
Next i
ProgressBar1.Visible = False
ProgressBar1.Value = ProgressBar1.Min
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?