Form.OnCloseQuery

Syntax

Sub OnCloseQuery(Sender: Object; Args: ICloseQueryEventArgs);

Begin

//set of operators;

End Sub OnCloseQuery;

Parameters

Sender - parameter that returns the component that has generated the event.

Args - parameter that enables the user to determine event parameters.

Description

The OnCloseQuery event occurs when the form receives a command for closing.

Comments

The reason of form closing can be determined using the CloseReason property of the event argument. Form closing can be allowed of prohibited using the Allowed property.

See also:

Form