OK,
I have a form that pops up a dialog box with a "start" button and a progress bar.
This works perfectly, unless i happen to try and use another program while it is running. When i make another window or program the active window, my progress bar ceases to update and eventually the dialogbox itself adds (Not Responding) to the end of it's title
It still completes fine, it just looks like its hung (which is *** :( )
Can anyone offer any suggestions as to how to prevent this Can i prevent focus from being shifted to any other window
It also happens if i click on the dialog box itself. :(
Cheers
Mc

Progress Bar Stops when active window is not selected
anna-jayne
I'll make a suggestion but I am not sure it applies in your case or if it will even work. Presumably, this "Not Responding" happens after the user clicks on the start button on the dialog in question and something you have coded starts running, probably in a loop or nested loops. If you can strategically place an "Application.DoEvents" in this processing loop (or nested loops), so that at fairly frequent intervals the DoEvents statement is processed, then this may allow the dialog form to process the queued windows messages like paint, paint background, etc. that occur when you activate another app.
Good luck.