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

# TCustomForm.DoShow

Signals the OnShow event handler when needed.

## Declaration

Source position: forms.pp line 644

`protected procedure TCustomForm.DoShow; virtual;`

## Description

No actions are performed in the method when a maximized or full-screen window (WindowState contains wsMaximized or wsFullScreen) is displayed for the first time. It signals the OnShow event handler (when assigned) to perform the event notification.

DoShow is called from the DelayedEvent method in response to queued OnResize or OnChangeBounds events, and from the CMShowingChanged method when Showing is set to True.

## See also

TCustomForm.OnShow |  | Handler called when the form becomes visible.
TCustomForm.WindowState |  | Indicates whether the form is displayed in a minimized, maximized, full-screen or normal state.
TWinControl.Showing |  | Cached visibility for the widget. Not necessarily in sync with the widget.
TControl.Parent |  | The control within which the control is shown.