Executes the given delegate on the thread that listens for system events.
[Visual Basic]
Public Shared Sub InvokeOnEventsThread( _
ByVal method As Delegate _
)
[C#]
public static void InvokeOnEventsThread(
Delegate method
);
[C++]
public: static void InvokeOnEventsThread(
Delegate* method
);
[JScript]
public static function InvokeOnEventsThread(
method : Delegate
);
Parameters
- method
- An event handler that listens for system events.
Remarks
You can use this method any time that you need to handle a system event that is not exposed otherwise by the SystemEvents class.
When you call this method, a delegate will be invoked by the thread that your application is using to process system events.
Requirements
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
See Also
SystemEvents Class | SystemEvents Members | Microsoft.Win32 Namespace