Hi all,

Does anyone know how to trap the "X" button found in the upper right hand corner of any window / form? I need to call a function when it is triggered.

Thanx in advance.