OnShow Event

Applies to TestComplete 15.63, last modified on April 22, 2024

Occurs when the component is shown.


OnShow(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog, TSelectDirectory, TSelectObjectPropertyDialog


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.


The event has the following parameter:


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


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