OnShow Event

Applies to TestComplete 15.48, last modified on January 31, 2023

Occurs when the component is shown.

Declaration

OnShow(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog

Description

The OnShow event occurs when the component appears on a screen. You can create an event handler for the OnShow event to perform specific actions upon displaying 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

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

Remarks

When the file-selection dialog is displayed, events occur in the following order:

See Also

Handling Events in User Forms
OnClose Event

Highlight search results