Vcl.Forms.TApplication.ShowMainForm
Delphi
property ShowMainForm: Boolean read FShowMainForm write FShowMainForm;
C++
__property bool ShowMainForm = {read=FShowMainForm, write=FShowMainForm, nodefault};
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | Vcl.Forms.pas Vcl.Forms.hpp |
Vcl.Forms | TApplication |
Description
Determines whether the application shows its main form on startup.
Use ShowMainForm to control whether and when the application shows its main form.
The default value of true is set in the constructor. When ShowMainForm is true, the main window shows automatically when the application starts. The MainForm property specifies which form is the main form.
To hide the main form at startup, set ShowMainForm to false in the main project file before the call to the Run method. Make sure that the Visible property of the form is also false.