WindowsFormsApplicationBase.ShutdownStyle Eigenschaft

Definition

Bestimmt, was passiert, wenn das Hauptformular der Anwendung geschlossen wird.

protected public:
 property Microsoft::VisualBasic::ApplicationServices::ShutdownMode ShutdownStyle { Microsoft::VisualBasic::ApplicationServices::ShutdownMode get(); void set(Microsoft::VisualBasic::ApplicationServices::ShutdownMode value); };
protected internal Microsoft.VisualBasic.ApplicationServices.ShutdownMode ShutdownStyle { get; set; }
member this.ShutdownStyle : Microsoft.VisualBasic.ApplicationServices.ShutdownMode with get, set
Protected Friend Property ShutdownStyle As ShutdownMode

Eigenschaftswert

Einer der Enumerationswerte, der angibt, was die Anwendung tun soll, wenn das Hauptformular geschlossen wird.

Hinweise

Die OnMainFormClosed Methode überprüft den Wert dieser Eigenschaft, um festzustellen, ob die Anwendung beim Schließen des Hauptformulars heruntergefahren werden soll oder ein anderes geöffnetes Formular als neues Hauptformular höhergestuft werden soll.

Gilt für:

Weitere Informationen