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

TCustomForm.ShowModal

Show this form as a modal Dialog.

Declaration

Source position: forms.pp line 614

public function TCustomForm.ShowModal: Integer; virtual;

Function result

The modal result of the dialog.

Description

The call doesn't return until the form is closed. The application switches to modal state until then.

Errors

EInvalidOperation if the form cannot be shown modally.