I found this and it works (I have it connected to my program's "File">"Exit" menu)
But when I click the X in the corner of the window, the window closes, but it shows that the application lives on in the TaskManager.
Function OnQuit(event:wxEvent) ' true is to force the frame to close wxWindow(event.parent).Close(True) End Function
But when I click the X in the corner of the window, the window closes, but it shows that the application lives on in the TaskManager.