WindowsFormsApplicationBase.ShutdownStyle Eigenschaft

Definition

Bestimmt, wie verfahren werden soll, 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 Standard Formular geschlossen wird.

Hinweise

Die OnMainFormClosed -Methode überprüft den Wert dieser Eigenschaft, um festzustellen, ob die Anwendung heruntergefahren werden soll, wenn das Standard Formular geschlossen wird, oder ob ein anderes geöffnetes Formular als neues Standard Formular höhergestuft werden soll.

Gilt für:

Weitere Informationen