Sign in Join
FPDoc Onlineexperiment

TApplication.MainForm property

Member of TApplicationpublicIn unit Forms

Contains the main form for the application.

Declaration

pascal
property MainForm: TForm read FMainForm;

Description

MainForm is a read-only TForm property which contains the form that is the main or primary form for the application.

The value in MainForm is assigned when the first form is created using the CreateForm method and the FormStyle for the form contains a value other than fsSplash.

The form instance in MainForm is displayed when the Run method is called to start the message processing loop for the application.

The application is terminated when this form is closed.

See also

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.