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

# TApplication.Minimize

Asks the widgetset to minimize the application.

## Declaration

Source position: forms.pp line 1628

`public procedure TApplication.Minimize;`

## Description

Calls the AppMinimize method in the widgetset class to hide the MainForm and update its WindowState property. Other forms and modal pop-up windows for the application are also minimized.

Use MainFormOnTaskbar to control whether the form is displayed on the Task bar when the application has been minimized.

Use Restore to display the application and its forms and dialogs using their states before they were minimized.

## See also

TApplication.MainForm |  | Contains the main form for the application.
TApplication.MainFormOnTaskBar |  | Controls whether a button is displayed on the task bar for the main form in the application.
TApplication.ModalLevel |  | The number of modal forms shown.
TApplication.Restore |  | Restores a previously minimized application.
TCustomForm.FormState |  | State flags for the form.
TCustomForm.ShowInTaskBar |  | Indicates if the form should be displayed on the system Task Bar.
TCustomForm.WindowState |  | Indicates whether the form is displayed in a minimized, maximized, full-screen or normal state.
TCustomForm.Visible |  | Indicates if the control is visible on its parent.
TScreen.CustomFormsZOrdered |  | The list of Custom Forms, indexed by Z-order (zero is top-most).