On my main window for the Quit MenuItem I have this code
I also have some supporting windows which I give the user the option of stopping the quit process (CancelClose) with a dialog, which return true in this case.
Ever since I got it so the supporting windows, this dialog show up twice. First time the cancelClose is ran is from Self.Close, and the second is from Quit.
I have tried removing Self.Close, but Quit won’t fire if more than 1 window is open.
Is there any way I can get everything I want, Supporting Windows stopping close and the dialog only showing up once?