[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gambas-bugtracker] Bug #3185: unable to close windows


http://gambaswiki.org/bugtracker/edit?object=BUG.3185&from=L21haW4-

Comment #1 by Bruce STEERS:

Did you set Application.MainWindow to the host window?

If you want your application to have a window that closes all other child windows when it closes then you have to set the Application.MainWindow property.
It is not the default behaviour.

for example , put this in your host windows Form_Open method....

Public Sub Form_Open()

  Application.MainWindow = Me

End



----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----

References:
[Gambas-bugtracker] Bug #3185: unable to close windows<bugtracker@xxxxxxxxxxxxxx>