CTE Solutions
 Search
Thursday, August 28, 2008 ..:: Community Forum ::.. Register  Login
 Community Forum Minimize
     
  .NET Development  MCTS 70-526 Study Group  Application.DoEvents() for more UI perfomant application  

 Application.DoEvents() for more UI perfomant application 
 
Flip
72 posts
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 
SueHell
13 posts
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
 
 
   

Search   

Copyright 2008 Ottawa .NET Community   Terms Of Use  Privacy Statement
Portal engine source code is copyright 2002-2008 by DotNetNuke. All Rights Reserved