Sign in Join
FPDoc Onlineexperiment

TCustomForm.Close procedure

Member of TCustomFormpublicIn unit Forms

Closes the form.

Declaration

pascal
procedure Close

Description

Close does not necessarily destroy the form. Modal forms only are hidden. When the MainForm is closed, the application terminates.

An OnCloseQuery handler can refuse to allow the form to close.

See also

An experiment, built from Lazarus main 2dfa93c66e of 10-22-2026. Not the official Lazarus documentation.