Visual Basic (Declaration) | |
---|---|
Public MustOverride Property IsExitEnabled As Boolean |
C# | |
---|---|
public abstract bool IsExitEnabled {get; set;} |
This property determines what happens when the user attempts to exit the application using either the File > Exit menu button or the Windows Close button. This is significant in the case where this application was started by another via the VSA's .NET API.
When IsExitEnabled is true (default), then exiting this application via File > Exit or Windows Close button will cause the application to shut down completely.
When IsExitEnabled is set to false, exiting the application via File > Exit or Windows Close button will simply hide the application main window, toggling the IsVisible property to false. The application will continue to run and be available to the entity that started the VSA programmatically. Setting the IsVisible property to true again will cause the main window to reappear.
Target Platforms: Windows 11 Professional or Enterprise; Windows 10 Professional, Enterprise, or Education (64-bit)