Show: Delphi C++
Display Preferences

Vcl.Forms.TForm.OnDestroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy stored IsForm;

C++

__property OnDestroy;

Properties

Type Visibility Source Unit Parent
event published
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TForm

Description

Occurs when the form is destroyed.

Vcl.Forms.TForm.OnDestroy inherits from Vcl.Forms.TCustomForm.OnDestroy. All content below this line refers to Vcl.Forms.TCustomForm.OnDestroy.

Occurs when the form is destroyed.

Use OnDestroy to perform special processing when the form is destroyed. Either implement this event or override the destructor of the class, but not both. This event should destroy any objects created in the OnCreate event.

See Also

Code Examples


Personal tools
RAD Studio 10.2 Tokyo
In Other Languages
Previous Versions
Assistance