Normally returning true in Window.CancelClose should stop the window from closing, and also stop the App from quitting.
I have a project here in which I’m returning True in this event, and it’s not stopping anything. The app just quits every time, no matter what I return here.
Under what circumstance would this happen? I’ve looked around for other calls to close or quit, and can’t find any. What’s going on?
My Window class does have code in its CancelClose event, which calls a shadowed CancelClose event as follows:
me.IsClosing = not RaiseEvent CancelClose( appQuitting )
I set this flag IsClosing in order to suppress the Activate event from firing during close (the event fires on Mac during the close sequence when the user closes a modal dialog in the window)