NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Application.DoEvents (Int32)

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
);

Parameters

message
The message type to process.

Remarks

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.

Requirements

NGWS Runtime Security:

UIPermission You must have the System.security.Permissions.UIPermission for AllWindows to set this method.

See Also

Application Class | Application Members | System.WinForms Namespace | Application.DoEvents Overload List | Exit | ExitThread | DoEvents | Run