Hi, AFAIK you should: - have a "LogClosing" method that logs what needs to be logged; - have that called by the SystemEvents.SessionEnding handler; - have it also called by the Form.FormClosing handler; - implement some protection so it only executes once (as FormClosing may or may not fire on session end) :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]
I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.