OnClose Event

Applies to TestComplete 14.30, last modified on November 21, 2019

Occurs upon closing a component.

Declaration

OnClose(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog

Description

The OnClose event occurs when the dialog is closed. You can create an event handler for the OnClose event to perform specific actions upon closing a dialog.

For more information on how to create event handlers for user form components, see Handling Events in User Forms.

Parameters

The event has the following parameter:

Sender

A user form component that raised the event.

See Also

Handling Events in User Forms
OnShow Event

Highlight search results