DelphiDelphiVCLPythonPython GUIWindows

What is the MainForm Property in DelphiVCL.Application?


The MainForm or DelphiVCL.Application.MainForm property identifies the form in the application that is the main form.

The value of MainForm is the form that is the application’s main window. The main form is the first form created in the main body of the application by a call to CreateForm. When the main form closes, the application terminates. MainForm cannot be modified at run time (it is read-only at run time).

What else is there to know about DelphiVCL.Application.MainForm?

Note: By default, the form created by the first call to CreateForm in a project becomes the application’s main form. Before calling CreateForm, you can create as many forms as wanted by calling their own constructor.

Note: Before showing the MainForm, you can add a splash window. The MainForm will be shown after the initialization of the application finishes.

Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.MainForm using dir() command:

What does the output of the MainForm example look like?

See the responses in our Windows command prompt:


You can also read short information about the DelphiVCL.Application.MainForm using the print() command:

See the responses in our Windows command prompt:



Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.

Related posts
DelphiLearn PythonPythonPython GUIRAD Studio

Why You Should Know About SQLite For Your Windows Apps

Learn PythonPythonPython GUIVideos

How To Make Matplotlib Charts To Visualize Data

DelphiPythonPython GUIWindows

What You Need To Create A Secure Python Password Generator

DelphiPythonPython GUIWindows

How To Make A GUI For Learning Python Using Turtle Library

Schreiben Sie einen Kommentar

Ihre E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.