[Gambas-user] List of Open Forms?

Kende Krisztián nemh at ...2007...
Tue Aug 27 15:28:07 CEST 2013


> Application.MainWindow = Me
> 
> 
> 
> so, it works.

Yeah, but it is not clear:

Static Property MainWindow As Window

RETURNS the main window of the application.

The main window is the FIRST CREATED WINDOW or form in your
application. Closing the main window implies closing all other opened
windows and quitting the application.


If closing the first created main window, the secondary created is not
closed. But if SET the MainWindow, then works. So first created window
is not main window, and it is possible to change the MainWindow value.




More information about the User mailing list