Hi all, which event refers to the closing X of the form? When I use Form_Close the code will be run even when clicking OK (and closing the form). What I want is the same reaction like when clicking the Cancel button without affecting OK. Maybe a stupid question, but 've never had this problem yet. Regards Rolf