Does anyone know how to respond to a click on a forms controlbox. ie: I have an MDI Parent form, which I don't want to close without prompting for confirmation. This works when the user exits via the exit function I have put on the main menu, however a user can still close the form by clicking the X on the controlbox. Does anyone know if I can detect this click so I can ask the user if they really want to exit ?

Thanks.

DQ