If I am fixated on a lengthy operation (say, processing files) and I want to update the progress bar, I need to use DoEvents from what I can understand.
But calling it during each function cycle leads to the fact that the animation of the progress is played very quickly (or slowly, depending on the operation). I understand that this is because DoEvents allows the progress bar to "breathe" due to the lack of a better word, causing it and the rest of the form to be updated.
My question is, how do you know it should be called DoEvents? Obviously, you cannot just call it a whim, but you often feel that way - it leads to sporadic animation, among other things. So, is there any quick way to check if a form / application needs to call DoEvents?
qJake source
share