OnFolderChange Event

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

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


OnFolderChange(Sender) Parameters
Sender [in] Required Variant

Applies To

The event applies to the following components:

TOpenDialog, TSaveDialog


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.


The event has the following parameter:


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


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