API:Vcl.Forms.TForm.OnDestroy
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