Gets or sets the Form to use as context.
Public Property MainForm As Form
public Form MainForm { get; set; }
public: property Form^ MainForm { Form^ get (); void set (Form^ value); }
member MainForm : Form with get, set
This property determines the main Form for this context. This property can change at any time. If OnMainFormClosed is not overridden, the message loop of the thread terminates when the mainForm parameter closes.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2