[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] |
Identifies which form in the application is the main form
Source position: fpg_base.pas line 591
public property TfpgApplicationBase.MainForm : TfpgWindowBase |
Identifies which form in the application is the main form. Use the MainForm property to determine the form that acts as the application's main window. The first form that is show will be assigned as the main form of the application. If the main form closes, then all other forms are closed too, and the application quits.
There are cases where the first form that was created and show, you don't want to act as the application's main form. In such a case, simply assign the form you want to act as the application's main form to the MainForm property.
|
Creates a new form |