Edit

Share via


WindowsFormsApplicationBase.ShutdownStyle Property

Definition

Determines what happens when the application's main form closes.

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

Property Value

One of the enumeration values that indicates what the application should do when the main form closes.

Remarks

The OnMainFormClosed method checks the value of this property to determine if the application should shut down when the main form is closed, or if another open form should be promoted as the new main form.

Applies to

See also