OnFolderChange Event

Applies to TestComplete 14.72, last modified on April 22, 2021

Occurs when a folder is opened or closed within a file-selection dialog.

Declaration

OnFolderChange(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog

Description

The OnFolderChange event occurs upon changing a directory whose contents are displayed in the dialog. This can happen when the user double-clicks on a directory, clicks the Up One Level or Go To Last Folder Visited buttons at the top of the dialog, clicks on the places bar item, or uses the list box at the top of the dialog to navigate through the directory structure. You can create an event handler for this event to perform specific actions when the current folder changes.

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

See Also

Handling Events in User Forms
OnSelectionChange Event
OnTypeChange Event

Highlight search results