This documentation is archived and is not being maintained.

SystemEvents.InvokeOnEventsThread Method

Executes the given delegate on the thread that listens for system events.

[Visual Basic]
Public Shared Sub InvokeOnEventsThread( _
   ByVal method As Delegate _
public static void InvokeOnEventsThread(
 Delegate method
public: static void InvokeOnEventsThread(
 Delegate* method
public static function InvokeOnEventsThread(
   method : Delegate


An event handler that listens for system events.


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.


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