Application.AllowQuit Property


Gets a value indicating whether the caller can quit this application.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public static bool AllowQuit { get; }

Property Value

Type: System.Boolean

true if the caller can quit this application; otherwise, false.

This property returns false if it is called from a Control being hosted within a Web browser. Thus, the Control cannot quit the Application.

.NET Framework
Available since 1.1
Return to top