RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.DoDestroy Method

Form destruction event dispatcher.

Pascal
procedure DoDestroy; virtual;
C++
virtual __fastcall DoDestroy();

DoDestroy is called automatically when the TCustomForm object is about to be deallocated. The precise way DoDestroy is called can be modified by setting the OldCreateOrder property. 

As implemented in TCustomForm, DoDestroy simply calls the OnDestroy event handler. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!