I have an application with several forms. On one of them, if there are unsaved changes to a table, I want to display a message dialog box and intercept the close, allowing the user to save the changes first. I am currently using a bitbtn as bkClose to exit the form. I tried to put code in the on click event of the button but it was ignored.