Responsive GUI

I second @Tim_Parnell in this. Don’t do that. DoEvents is a command meant only for console apps to facilitate a main event loop. Use of the command for anything else basically makes your apps do things that are not debuggable and by the time you realize that, it’s going to require huge amounts of refactoring to fix.

Use Threads, Workers and/or Console to accomplish this and you’ll be much happier on the long run.

@Xojo, how about deprecating DoEvents for desktop projects… or even better, make it a no-op!

8 Likes