WindowsFormsApplicationBase.ShutdownStyle Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Feedback
https://aka.ms/ContentUserFeedback.
Kommer snart: I hele 2024 udfaser vi GitHub-problemer som feedbackmekanisme for indhold og erstatter det med et nyt feedbacksystem. Du kan få flere oplysninger under:Indsend og få vist feedback om