RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomForm.DoClose Method

Form closing event dispatcher.

Pascal
procedure DoClose(var Action: TCloseAction); dynamic;
C++
__fastcall DoClose(TCloseAction Action);

DoClose is called automatically when the form is about to close. DoClose can alter closing behavior by changing the Action parameter. For more information, refer to the OnClose event handler. 

As implemented in TCustomForm, DoClose simply calls the OnClose event handler. 

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!