Vcl.Forms.TCustomForm.OnDestroy

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property OnDestroy: TNotifyEvent read FOnDestroy write FOnDestroy stored IsForm;

C++

__property System::Classes::TNotifyEvent OnDestroy = {read=FOnDestroy, write=FOnDestroy, stored=IsForm};

Properties

Type Visibility Source Unit Parent
event protected
Vcl.Forms.pas
Vcl.Forms.hpp
Vcl.Forms TCustomForm

Description

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