ApplicationMainForm Property |
Gets or sets the main form for your application.
Namespace:
Eto.Forms
Assembly:
Eto (in Eto.dll) Version: 2.5.3-dev
Syntax public Form MainForm { get; set; }
Public Property MainForm As Form
Get
Set
member MainForm : Form with get, set
Property Value
Type:
FormThe main form for your application.
Remarks
When you set this to your main application form, it will get standard platform behaviour applied, such as
quitting the application when it is closed (on windows, linux), or showing the main form on OS X when clicking
the application icon if it has been hidden/closed.
Setting this is optional, however you must then manually call
Quit when you want your application
to quit in that case.
See Also