home *** CD-ROM | disk | FTP | other *** search
- VERSION 5.00
- Begin VB.Form Form1
- Caption = "Form1"
- ClientHeight = 3420
- ClientLeft = 60
- ClientTop = 345
- ClientWidth = 7320
- LinkTopic = "Form1"
- ScaleHeight = 3420
- ScaleWidth = 7320
- StartUpPosition = 3 'Windows Default
- Begin VB.TextBox Text1
- Height = 285
- Left = 480
- TabIndex = 6
- Text = "1000"
- Top = 1560
- Width = 2295
- End
- Begin VB.CommandButton Command3
- Caption = "Test3"
- Height = 615
- Left = 4080
- TabIndex = 5
- Top = 1920
- Width = 3135
- End
- Begin VB.CommandButton Command2
- Caption = "Test2"
- Height = 375
- Left = 120
- TabIndex = 4
- Top = 2400
- Width = 2655
- End
- Begin VB.CommandButton Command1
- Caption = "Test"
- Height = 495
- Left = 120
- TabIndex = 3
- Top = 840
- Width = 6615
- End
- Begin VB.PictureBox Pic3
- Height = 615
- Left = 4080
- ScaleHeight = 555
- ScaleWidth = 3075
- TabIndex = 2
- Top = 2640
- Width = 3135
- End
- Begin VB.PictureBox Pic2
- Height = 375
- Left = 120
- ScaleHeight = 315
- ScaleWidth = 2595
- TabIndex = 1
- Top = 2880
- Width = 2655
- End
- Begin VB.PictureBox Pic1
- Height = 375
- Left = 120
- ScaleHeight = 315
- ScaleWidth = 6555
- TabIndex = 0
- Top = 360
- Width = 6615
- End
- Begin VB.Label Label1
- AutoSize = -1 'True
- Caption = "Max:"
- Height = 195
- Left = 120
- TabIndex = 7
- Top = 1560
- Width = 345
- 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 X As Integer
- Dim max As Integer
- max = Text1
- For X = 1 To max
- 'leaving out the optional caption will just display
- 'the number with a percent sign ie: 46%
- Call Progress(Pic1, X, max)
- Next X
- End Sub
- Private Sub Command2_Click()
- Dim X As Integer
- Dim max As Integer
- max = Text1
- For X = 1 To max
- 'Entering the Caption with a percent sign in front
- 'will display the text you specify with the numbered
- 'percent following ie: you Input "LOADIN" will display
- 'LOADING 45%
- Call Progress(Pic2, X, max, "%Loading")
- Next X
- End Sub
- Private Sub Command3_Click()
- Dim X As Integer
- Dim max As Integer
- max = Text1
- For X = 1 To max
- 'Entering the caption with nothing if front will just
- 'display what you typed ie: you Input "Loading" will
- 'disply Loading
- Call Progress(Pic3, X, max, "Loading")
- Next X
- End Sub
-