Ok in the application I have, I want to display a little msg "do you want to save" when the users presses 'x'.
In other words the user cannot close the window without first choosing one of the two buttons in the msg box.
How do I do this. Gimme code please...