[Gambas-user] getting warning when quitting running application
bagonergi at gmail.com
Wed May 11 22:45:41 CEST 2022
Il giorno mer 11 mag 2022 alle ore 22:15 Benoît Minisini <g4mba5 at gmail.com>
> Le 11/05/2022 à 21:42, Charles Bukowski a écrit :
> > It works perfectly!! With no warnings in console as well !!
> > (I've used mine)
> > Many thx
> When making a GUI problem, you should tell Gambas which window can be
> considered the main window, by setting the Application.MainWindow property.
> Then, closing that main window will automatically close all other
> windows, and your program will quit gracefully (unless there are pending
> file watches, timers, sockets...).
> See https://gambaswiki.org/wiki/comp/gb.qt4/application/mainwindow
> Benoît Minisini
> ----[ http://gambaswiki.org/wiki/doc/netiquette ]----
One system may be to place this code in windows that can close the
Public Sub Form_Close()
Application.MainWindow = Me
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the User