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

# TCommonDialog.Handle

Contains the handle for the dialog form.

## Declaration

Source position: dialogs.pp line 121

`public property TCommonDialog.Handle : TLCLHandle read FHandle write SetHandle;`

## Description

Handle is a TLCLHandle property with the handle for the dialog form. Its value is assigned in the Execute method and contains the handle from the widgetset class instance. Handle is checked during execution of the dialog to ensure that it does not contain an unassigned value. The unassigned value for Handle is 0 (zero). Handle is destroyed when the Close method is executed.

## Version info

Modified in LCL version 4.0 to use the TLCLHandle type instead of the deprecated THandle type in the property.

## See also

TCommonDialog.Execute |  | Displays the dialog and captures the result.
TCommonDialog.Close |  | Closes the dialog and frees its resources.
TCommonDialog.HandleAllocated |  | Returns True if a widgetset Handle has been allocated for the dialog.
TLCLHandle |  | Alias to the TLCLHandle type defined for widgetset references.