ApplicationContext Constructor (Form)
Collapse the table of content
Expand the table of content

ApplicationContext Constructor (Form)


Initializes a new instance of the ApplicationContext class with the specified Form.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public ApplicationContext(
	Form mainForm


Type: System.Windows.Forms.Form

The main Form of the application to use for context.

If OnMainFormClosed is not overridden, the message loop of the thread terminates when MainForm is closed.

.NET Framework
Available since 1.1
Return to top
© 2016 Microsoft