Protocols/MSNP/Activities/SDK/Techref/Objectmodel/Objects/Channel/Events/OnAppClose
<a class="clsStd" href="../index.htm">Channel</a>.OnAppClose Event
Fires when the MSN® Messenger window is about to close.
VBScript Syntax
function Channel_OnAppClose() ' Messenger is shutting down, clean up application End Function
JavaScript Syntax
function Channel_OnAppClose() { // Messenger is shutting down, clean up application }
Remarks
MSN Messenger will give only a limited amount of time for an application to shut down. It will not remain open if an application remains busy more than a few seconds after OnAppClose fires. Save state quickly if necessary, and avoid opening any new dialog boxes, because data or input could be lost.