System.Windows.Forms.ApplicationContext.MainForm Property

Gets or sets the System.Windows.Forms.Form to use as context.

Syntax

public Form MainForm { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

This property determines the main System.Windows.Forms.Form for this context. This property can change at any time. If ApplicationContext.OnMainFormClosed(object, EventArgs) is not overridden, the message loop of the thread terminates when the mainForm parameter closes.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0