[Last Call] Learn how to a build a cloud-first strategyRegister Now


System.Windows.Forms.Form how yield thread to let other UI elements draw?

Posted on 2008-11-06
Medium Priority
Last Modified: 2012-08-14
In an event method (e.g., webbrowser1_DocumentCompleted), how do I yield the thread to let other threads run, then come back?
Question by:ZuZuPetals
1 Comment
LVL 64

Accepted Solution

Fernando Soto earned 2000 total points
ID: 22896997
By inserting a Application.DoEvents() call in the code that is currently executing will allow the UI thread to execute messages that are waiting to be processed and then return to the previous running code. So each time a Application.DoEvents() is executed the above will happen.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
Hello there! As a developer I have modified and refactored the unit tests which was written by fellow developers in the past. On the course, I have gone through various misconceptions and technical challenges when it comes to implementation. I would…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month18 days, 2 hours left to enroll

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question