e72b51c5_Basic_NET_Examples_02_03_05_08__1
[0] Properly using DoEvents() in your Code [2] Click Here [3] Click Here [1] 
This example shows how to properly use DoEvents() in your applications. Just by looking at the screenshot you can see the performance increases MANY times over compared to consistantly using DoEvents(). Whats also nice, is that your application will NOT appear frozen and the user can STILL interact with your program! By using the GetInputState Api call you only process the messages when there is one.
Visual Basic Code Source - Visual Basic.NET Examples 02/03/05/08
1