GFProgressBar2/Testfrm.frm
VERSION 5.00
Begin VB.Form Testfrm
Caption = "Form1"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 465
ClientWidth = 4935
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 4935
StartUpPosition = 3 'Windows‑Standard
Begin VB.PictureBox TestProgressBarPicture
Height = 360
Left = 60
Picture = "Testfrm.frx":0000
ScaleHeight = 300
ScaleWidth = 4755
TabIndex = 1
Top = 1005
Width = 4815
End
Begin VB.CommandButton Command1
Caption = "Test GFProgressBarcls"
Height = 375
Left = 2940
TabIndex = 0
Top = 2640
Width = 1935
End
End
Attribute VB_Name = "Testfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
'(c)2001 by Louis.
Dim TestProgressBar As New GFProgressBarcls
'DEBUG
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
Private Sub Form_Load()
'on error resume next
Call TestProgressBar.Define(TestProgressBarPicture)
End Sub
Private Sub Command1_Click()
'on error resume next
Dim Temp As Long
'reset
TestProgressBarPicture.Cls
'begin
For Temp = 1 To 9997 Step (1)
Call TestProgressBar.Refresh(CSng(Temp) / 9997 * 100!)
Next Temp
Call Sleep(2500)
For Temp = 9997 To 1 Step (‑1)
Call TestProgressBar.Refresh(CSng(Temp) / 9997 * 100!)
Next Temp
End Sub
[END OF FILE]