Ian said:
The main reason was to stop users from being able to click the close
button on the title bar. Is there a way of allowing users to use the
minimise button, but not the close button.
You mean the application's close button? You can control whether the
application closes, if you want to, by opening a hidden form when the
application opens, and cancelling that form's Unload event unless
certain conditions are met -- for example, unless the user has clicked
*your* button to close the application. Personally, I don't hold with
preventing users from closing the application, though I may want to know
when they do it so that I can run certain procedures. The Unload event
of a hidden form works well for that, too.
I think there may be a way you can use the Windows API to remove the
close ("x") button from the Access application window, but I've never
tried it and don't intend to.