[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Dialogs' (#lcl)

# TOpenDialog.DoSelectionChange

Performs actions when the selected file in FileName has been changed.

## Declaration

Source position: dialogs.pp line 273

`public procedure TOpenDialog.DoSelectionChange; virtual;`

## Description

DoSelectionChange is a method used to perform action needed when the selected file in the dialog has been change. It is called from methods in the widgetset class when a new value has been assigned to the FileName property.

DoSelectionChange updates an internal member used to track the current and previous value for the FileName property. It signals the OnSelectionChange event handler (when assigned) using the dialog class instance as the object for the notification.

Use HistoryList for the previously selected file name values in the dialog.

## See also

TOpenDialog.OnSelectionChange |  | Event triggered when the user changes the folder of file selection(s) made in the OpenDialog.
TFileDialog.FileName |  | Contains the UTF-8-encoded name for a file chosen using the dialog.