[Gambas-bugtracker] Bug #2547: Application.Main = Me causes window stacking problem

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sat May 14 23:22:54 CEST 2022


Comment #3 by Christof THALHOFER:

I think that was not the best idea you ever had. ;-)

A modal window has the sole purpose of preventing another window of the same application from getting focus. When it is closed, the window from which it was called should get the focus. Anything else is counterintuitive. I don't know of any other program that reacts this way either.

I only use Application.Main to close all connected windows together when the program ends and as a workaround I can set that just before the end of the program in the Form_Close() event. So this bug isn't crucial for me. But it needed a long time for me to find out what happens.

More information about the Bugtracker mailing list