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
public static bool AllowQuit {get;}
public: __property static bool get_AllowQuit();
public static function get AllowQuit() : Boolean;

Property Value

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.


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