Monday, November 8, 2010

Progerss bar VB 6.0

First, set the initial values to progress bar:

ProgressBar1.Min = 0 ' minimum value
ProgressBar1.Max = 100 ' maximum value
ProgressBar1.Value = 0 ' current value


Second, change the progress bar value (associated with your process):

ProgressBar1.value = 50 ' in this case, the progress bar will
' be set to half

DoEvents ' assure that current form and progress bar will be
' updated.

No comments:

Post a Comment