OnSelectionChange Event

Applies to TestComplete 15.64, last modified on May 16, 2024

Occurs upon changing a list of file names that is displayed by a file-selection dialog.


OnSelectionChange(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog


The OnSelectionChange event occurs when the user does something to change the list displayed in the dialog. This can include opening the file-selection dialog, highlighting a file or directory, selecting a new filter, selecting a new directory, or creating a new folder.

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 dialog is opened, events occur in the following order:

When the new file-filter is chosen, events occur in the following order:

When the folder is changed, events occur in the following order:

See Also

Handling Events in User Forms
OnFolderChange Event
OnTypeChange Event

Highlight search results