In this post, you’ll learn how to use the MainForm or DelphiVCL.Application.MainForm property to give the Windows handle of the application main form. MainFormHandle gives the Windows handle of the application main form.
Learning more about the MainFormHandle Property will help you to easily build Delphi VCL Applications using Python Windows GUI Builder.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.MainFormHandle using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.MainFormHandle) |
Table of Contents
What does the example of using MainFormHandle look like?
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.MainFormHandle using the print() command:
1 2 |
print(DelphiVCL.Application.MainFormHandle) print(DelphiVCL.Application.MainFormHandle.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.