Click or drag to resize

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; }

Property Value

Type: Form
The 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