ApplicationContext.MainForm Propriété

Définition

Obtient ou définit le Form à utiliser comme contexte.

public:
 property System::Windows::Forms::Form ^ MainForm { System::Windows::Forms::Form ^ get(); void set(System::Windows::Forms::Form ^ value); };
public System.Windows.Forms.Form MainForm { get; set; }
public System.Windows.Forms.Form? MainForm { get; set; }
member this.MainForm : System.Windows.Forms.Form with get, set
Public Property MainForm As Form

Valeur de propriété

Form

Form à utiliser comme contexte.

Remarques

Cette propriété détermine la principale Form pour ce contexte. Cette propriété peut changer à tout moment. Si OnMainFormClosed elle n’est pas substituée, la boucle de message du thread se termine lorsque le mainForm paramètre se ferme.

S’applique à