This documentation is archived and is not being maintained.

Application.AllowQuit Property

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

[Visual Basic]
Public Shared ReadOnly Property AllowQuit As Boolean
[C#]
public static bool AllowQuit {get;}
[C++]
public: __property static bool get_AllowQuit();
[JScript]
public static function get AllowQuit() : Boolean;

Property Value

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

Remarks

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

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

Application Class | Application Members | System.Windows.Forms Namespace

Show: