I have code where I wanted to update the screen/panel while I was in a long Do - Loop. In this loop I would update a value of a Label, etc. I would issue a DoEvents in this loop and the label would never update until the loop was complete. By fire, I mean process or trigger - do it's job.
I've read that DoEvents is for use in a loop to update the UI. I may just be it using wrong but I have never had it work until the loop or the for-next completes. One sample I tried was:
MyCounter = List1.Size -1
Dim CurrentV as Int
CurrentV = 0
Do while CurrentV < MyCounter
'** code to check dates and update AR
'**
'**
Label1.Text = "Working on Record: " & CurrentV
DoEvents
CurrentV = CurrentV + 1
Loop
Thanks,
Margret