In a form when its closing, the onClose function is called, which in turns calls this.close(), right??;
But if you override the OnClose function of a form, you can only perform this.hide() then because on this.close() creates a loop.
I can not close the entire program. Dont you want to perform a this.close because you dont want a bunch of forms in memory, and in my case possibly a lot.
Thanks
Ryan AlfordPosted Dec 26, 2007, 2:59 PM
this.close()
then the OnClose event fires
If you don't want to close the application, just do a this.hide().
Closing the startup form will close the application. If you hide that form, you are able to close all other forms without closing the application. So there would basically be, at most, only 2 forms in memory at one time.