AppCanClose event
This event is fired when the user tries to shut down the application. In this handler you can add code that asks if changes are to be saved or informs the user about the consequences of not saving changes.
Syntax
Public Function AppCanClose() As Long
Parameters
None.
Active objects
Return values
|
evtOK |
Returns this value if it is safe to close the application. |
|
evtOKAbort |
Prevents the application from exiting. |
|
evtError |
Results in an error message. |