Article ID: 150219
Article Last Modified on 7/14/2004
Public Sub UpdateProgress(ProgBar As Object, NewValue As Integer)
'Turn drag to Manual briefly.
ProgBar. Value = 0
'Update the progress.
ProgBar.Value = NewValue
'Turn drag to Automatic, and allow time for repaint.
ProgBar.DragMode = 1
DoEvents
End Sub
Private Sub Form_Click()
For i = 1 To 10
ProgressBar1.Value = ProgressBar1.Value + 10
Next i
End Sub
Private Sub Form_Click()
For i = 1 To 10
UpdateProgress ProgressBar1, ProgressBar1.Value + 10
Next i
End Sub
Additional query words: 4.00 vb4win vb432 buglist4.00
Keywords: kbbug KB150219