> 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.

------------------------------------------------------------------------------
Introducing Performance Central, a new site from SourceForge and 
AppDynamics. Performance Central is your source for news, insights, 
analysis and resources for efficient Application Performance Management. 
Visit us today!
http://pubads.g.doubleclick.net/gampad/clk?id=48897511&iu=/4140/ostg.clktrk
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to