Processes the specified Windows messages currently in the message queue.
[Visual Basic] Overloads Public Shared Sub DoEvents( _ ByVal message As Integer _ ) [C#] public static void DoEvents( int message ); [C++] public: static void DoEvents( int message ); [JScript] public static function DoEvents( message : int );
This method is used to allow processing of only certain messages, such as Microsoft.Win32.Interop.win.WM_PAINT, while holding up others. It is typically used in looping code to allow messages to be processed.
CAUTION Calling this method can cause cause code to be re-entered if a message raises an event.
NGWS Runtime Security:
UIPermission | You must have the System.security.Permissions.UIPermission for AllWindows to set this method. |
Application Class | Application Members | System.WinForms Namespace | Application.DoEvents Overload List | Exit | ExitThread | DoEvents | Run