Export (0) Print
Expand All

ApplicationContext Class

Specifies the contextual information about an application thread.

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

System.Object
   System.Windows.Forms.ApplicationContext

[Visual Basic]
Public Class ApplicationContext
[C#]
public class ApplicationContext
[C++]
public __gc class ApplicationContext
[JScript]
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.

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft