Provides a set of global system events to callers. This class cannot be inherited.
For a list of all members of this type, see SystemEvents Members.
[Visual Basic] NotInheritable Public Class SystemEvents [C#] public sealed class SystemEvents [C++] public __gc __sealed class SystemEvents [JScript] public class SystemEvents
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
System events are things such as shutdown notifications and changes to user preferences.
When a system event is raised calls back the corresponding delegate from a different thread. Therefore, you should make the call thread-safe.
If you need to call a system event that is not exposed as a member of this class, you can use the InvokeOnEventsThread method.
Note Do not perform time-consuming processing in a system event notification because it might prevent other applications from functioning.
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family
Assembly: System (in System.dll)