>In my form, I have put a exit button to exit the form but sometimes users are exiting through double clicking on control box due to which whatever cleanup code I have written in click event of my quit button doesn't get executed..
>
>Any way to trap the click of control box and redirect it to run click event of my button..
Setting closable .f. or completely disabling controlbox might be easier to deal with.