📄 form1.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Begin VB.Form Form1
Caption = "Form1"
ClientHeight = 0
ClientLeft = 60
ClientTop = 345
ClientWidth = 4680
LinkTopic = "Form1"
ScaleHeight = 0
ScaleWidth = 4680
StartUpPosition = 3 '窗口缺省
Begin VB.CommandButton Command1
Caption = "开始下载"
Height = 495
Left = 1200
TabIndex = 1
Top = 2040
Width = 1935
End
Begin VB.Timer Timer1
Interval = 1000
Left = 240
Top = 1920
End
Begin MSComctlLib.ProgressBar ProgressBar1
Height = 495
Left = 600
TabIndex = 0
Top = 840
Width = 3015
_ExtentX = 5318
_ExtentY = 873
_Version = 393216
Appearance = 1
Max = 10000
Scrolling = 1
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()
Timer1.Enabled = True
ProgressBar1.Visible = True
End Sub
Private Sub Form_Load()
Timer1.Enabled = False
ProgressBar1.Visible = False
ProgressBar1.Value = 0
End Sub
Private Sub Timer1_Timer()
Static n As Long
n = n + 100
If n <= ProgressBar1.Max Then
ProgressBar1.Value = n
Beep
Else
MsgBox "文件下载已完成!", 64, "提示"
Timer1.Enabled = False
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -