Op Englesch liesen Editéieren

Deelen iwwer


ShutdownMode Enum

Definition

Indicates which condition should cause a Windows Forms application to shut down.

C#
public enum ShutdownMode
Inheritance
ShutdownMode

Fields

Name Value Description
AfterMainFormCloses 0

Shut down when the main form closes.

AfterAllFormsClose 1

Shut down only after the last form closes.

Remarks

You can set the shutdown mode for an application through the ShutdownStyle property. By default, the OnMainFormClosed method checks the value of the ShutdownStyle property to determine if the application should shut down.

Applies to

Produkt Versiounen
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 5, 6, 7, 8, 9, 10

See also