[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] | Reference for unit 'Forms' (#lcl)

# TCustomForm.OnHide

Handler called when the form is being hidden.

## Declaration

Source position: forms.pp line 808

`public property TCustomForm.OnHide : TNotifyEvent read FOnHide write FOnHide;`

## Description

OnHide is a TNotifyEvent property that represents the event handler signalled when the form instance is hidden. OnHide is triggered (when assigned) in the DoHide method, and occurs when the CMShowingChanged control message is applied to the Showing property for the form instance.

## See also

TCustomForm.DoHide |  | Signals the OnHide event handler for the form instance.
TCustomForm.Hide |  | Hides the control by setting the Visible property to False.
TCustomForm.Visible |  | Indicates if the control is visible on its parent.
TCustomForm.CMShowingChanged |  | Handles the CM_SHOWINGCHANGED control message for the form.
TWinControl.Showing |  | Cached visibility for the widget. Not necessarily in sync with the widget.
TNotifyEvent