OnPageClose Event

See Also         Example         Applies To

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.