AppCanClose() As Long

Description

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.

Parameters

None.

Return values

Return value

Description

EV_OK

Return this if it is safe to close the application.

EV_OK_ABORT 

Causes the application to not shut down.

EV_ERROR

Causes the application to not shut down (same as EV_OK_ABORT).

Application-level events