Taking over the Control Box

Tezcatlipoca

Registered User.
Local time
Today, 06:40
Joined
Mar 13, 2003
Messages
246
Right, so I have a perfectly functioning database that works beautifully and is fully controlled. It runs on modal popups, and a variety of techniques have been used to prevent the users from ever getting to - or even seeing - Access behind.

I have now had a request from work to add the three standard Windows buttons to the title bar (Min, Max, Close). Obviously, this is easy to implement, but in testing I find that the Min button minimizes the form to it's own small window, rather than into the taskbar. This is really just an aesthetic issue, but I'd like to solve it if possible.

More alarming is the effect of the Close button. This is basically restoring the very function I spent so long removing (viz. the ability to close the form and get into Access behind). I personally don't think there is a need for any of these buttons, especially as I have included Quit buttons on the forms, but work tend to fall into the PC category of 'it-doesn't-look-like-a-Windows-window-so-we-get-confused-easily'.

I know I can use
Code:
RemoveMenu hSysMenu, 6, MF_BYPOSITION
in a Module to remove it, but is there a way I can introduce some extra code to control it and have it do what I want it to do?
 
Last edited:
If your system starts with a hidden form, it will be the last object to close and you can stop that from happening in the UnLoad event. You still are subject to a three finger salute.
 

Users who are viewing this thread

Back
Top Bottom