OnClose Event

Applies to TestComplete 15.65, last modified on July 17, 2024

Occurs upon closing a component.


OnClose(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog


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.


The event has the following parameter:


Contains a reference to the user form component that has raised the event.

See Also

Handling Events in User Forms
OnShow Event

Highlight search results