OnPageClose Event

This content is no longer actively maintained. It is provided as is, for anyone who may still be using these technologies, with no warranties or claims of accuracy with regard to the most recent product version or service release.

                 

Occurs when a page is closed.

Syntax

Private Sub Application_OnPageClose(pPage As PageWindow, Cancel As Boolean)

pPage   Required PageWindow. The specified PageWindow object.

Cancel   Required Boolean. Causes Microsoft FrontPage to abort the close when set to True. When Cancel is programmatically set to True, the user can abort the save process by clicking the Cancel button on the form. Default is False.

Remarks

The OnPageClose event is associated with the Application object. When the user closes a PageWindow object, the OnPageClose event fires and executes the code that you specified within the event procedure.