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

# TCommonDialog.DoClose

Performs actions needed when the dialog is closed.

## Declaration

Source position: dialogs.pp line 126

`public procedure TCommonDialog.DoClose; virtual;`

## Description

DoClose is a method used to perform actions needed when the dialog is closed. It updates an internal flag which indicates the method has been called, and signals the OnClose event handler (when assigned).

DoClose is called from the Close method, and occurs before the widgetset Handle for the dialog is freed.

## See also

TCommonDialog.OnClose |  | Event handler signalled when the dialog is closed.
TCommonDialog.Execute |  | Displays the dialog and captures the result.
TCommonDialog.DoExecute |  | The function that actually takes care of executing the dialog.
TCommonDialog.Close |  | Closes the dialog and frees its resources.
TCommonDialog.Handle |  | Contains the handle for the dialog form.