LocationMy.Application.DoEvents SyntaxMy.Application.DoEvents( ) DescriptionThe DoEvents method temporarily relinquishes control from the current block of code so that other pending Windows messages can be processed. Using this method in a block of processing-intensive code can make your application feel more responsive. In some instances, it may be better to use multiple threads within your application to achieve this same goal. Messages in the message queue for your application are normally processed one at a time by event handlers. If you take a long time to complete processing for a single message, all other messages in the queue will be blocked until the active event completes. Using the DoEvents method allows these other messages to be processed. Usage at a Glance
Related Framework Entries
See AlsoApplication Object |