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

# TCustomTaskDialog.Handle

Handle for the form displayed for the task dialog.

## Declaration

Source position: dialogs.pp line 830

`public property TCustomTaskDialog.Handle : THandle read FHandle;`

## Description

Handle is a read-only THandle property which contains the handle for the dialog form displayed for the task dialog. The value for the property is assigned when the form has been created in the widgetset class instance. For platforms using a native task dialog (Windows Vista or later), it is assigned when the TDN_DIALOG_CONSTRUCTED notification is handled in the callback routine for the widget. For platforms using an emulated task dialog, it is assigned when the AfterConstruction method for the TLCLTaskDialog instance is called.

## Version info

Added in LCL version 4.0.

## See also

TCustomTaskDialog.InternalSetDialogHandle |  | Sets the value for the Handle property.
TCustomTaskDialog.OnDialogConstructed |  | Event handler signalled when the constructor for the dialog form instance has completed.
TLCLTaskDialog.AfterConstruction |  | Performs actions needed when a new instance of the class has been created.