Form.OnCloseQuery

Syntax

OnCloseQuery(Sender: Object; Args: ICloseQueryEventArgs);

Parameters

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

Args. The 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