So, I have this For Each loop that takes a while to run. I wanted to take
advantage of the visual feedback the ProgressBar could give to the impatient
user. However, when I place the ProgressBar.Value=x and ProgressBar.Refresh
within the loop, I can't seem to get the ProgressBar to redraw itself to show
the progress in real time. Any suggestions?

Signature
Michael
Jared - 07 Jul 2007 04:03 GMT
application.doevents ?
or maybe you are after the Style.Marque property setting for progress bar ?
Herfried K. Wagner [MVP] - 07 Jul 2007 12:07 GMT
"michael" <michael@discussions.microsoft.com> schrieb:
> So, I have this For Each loop that takes a while to run. I wanted to take
> advantage of the visual feedback the ProgressBar could give to the
[quoted text clipped - 4 lines]
> show
> the progress in real time. Any suggestions?
Maybe you need an 'Application.DoEvents()' call.

Signature
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>