|
|
| | |
Application.DoEvents() for more UI perfomant application Posted: 20 Nov 07 7:37 AM (Canada) |
| | |
I took Souheil's advice and played with the Application.DoEvents() in a for loop, and it's pretty cool. Here's a simple example to illustrate things. Just comment/uncomment out the DoEvents and after you run the app, try to move the form around. Without the DoEvents, you'll find you can't.
|
TestingGrounds.zip |
| |
| | |
Re: Application.DoEvents() for more UI perfomant application Posted: 20 Nov 07 3:50 PM (N/A) |
| | |
Happy to see that.
Also, the DoEvents is very helpfull whenever you want to add an Abort button to the form.
By calling this method inside your worker loop, it will give the system a chance to process the click message on the Abort button.
Have fun. |
| |
| | .NET Development MCTS 70-526 Study Group Application.DoEvents() for more UI perfomant application | | |
| | | |