Export (0) Print
Expand All

WindowsFormsApplicationBase.ShutdownStyle Property

Note: This property is new in the .NET Framework version 2.0.

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

Namespace: Microsoft.VisualBasic.ApplicationServices
Assembly: Microsoft.VisualBasic (in microsoft.visualbasic.dll)

protected internal ShutdownMode ShutdownStyle { get; set; }
/** @property */
protected ShutdownMode get_ShutdownStyle ()

/** @property */
protected void set_ShutdownStyle (ShutdownMode value)

protected internal function get ShutdownStyle () : ShutdownMode

protected internal function set ShutdownStyle (value : ShutdownMode)

Property Value

A ShutdownMode enumeration value, indicating what the application should do when the main form closes.

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.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft