Quote Originally Posted by Shaggy Hiker View Post
Having said that, in my experience, if the loop is fast enough, the refresh eventually quits and the painting stops happening. Application.DoEvents will work in those cases, it just comes at a serious cost in performance. So, updating the control every N iterations is the way to go.
OK. I recall having to add that DoEvents to the VB6 version 6 years ago so the "progress bar" would refresh. They must have done something to speed things up. In fact, that was the first time I had to touch this code.