This is the first time I notice that FormClose event is not fired when a user logs out and all the applications are closed. I'm not sure what the exact behavior is but it seemed natural to me to expect FormClose event when logging out a user. FormClose event handler is where I typically put the clean up code.
FormDestroy is called though. I'll have to move some of the clean up code to this event. What's missing in FormDestroy is that you won't get a chance to say no, because it doesn't have the var Action: TCloseAction parameter. Now that I have to scatter the clean up code, this part of the code looks a little untidy now. I wonder if anyone has a good idea how to handle this. -- Best regards, Jack _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

