This documentation is archived and is not being maintained.

ApplicationContext Class

Specifies the contextual information about an application thread.

For a list of all members of this type, see ApplicationContext Members.


[Visual Basic]
Public Class ApplicationContext
public class ApplicationContext
public __gc class ApplicationContext
public class ApplicationContext

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.


You can use the ApplicationContext class to redefine the circumstances that cause a message loop to exit. By default, the ApplicationContext listens to the Closed event on the application's main Form, then exits the thread's message loop.


Namespace: System.Windows.Forms

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.Windows.Forms (in System.Windows.Forms.dll)

See Also

ApplicationContext Members | System.Windows.Forms Namespace