Hi Access experts,
Just a quick question - I've been looking all over trying to find an answer, but haven't so far. Is there any way to modify the Control Box for the Main Access Application window ("Omain") ?
I'm using the FindWindow and SetWindowPos api's to limit the Main window to 1024 x 768, and center it on the user's screen, regardless of their actual screen resolution. This part is working great, and it allows me to use Docmd.Maximize on all forms without exceeding 1024 x 768.
My question is, how can I remove the "X" from the Main window (or control it in code), to prevent users from closing the entire database accidentally? I know how to limit the min, max, and close buttons on individual forms, but haven't found anything that talks about the Main Application itself. Any help would be greatly appreciated!
Just a quick question - I've been looking all over trying to find an answer, but haven't so far. Is there any way to modify the Control Box for the Main Access Application window ("Omain") ?
I'm using the FindWindow and SetWindowPos api's to limit the Main window to 1024 x 768, and center it on the user's screen, regardless of their actual screen resolution. This part is working great, and it allows me to use Docmd.Maximize on all forms without exceeding 1024 x 768.
My question is, how can I remove the "X" from the Main window (or control it in code), to prevent users from closing the entire database accidentally? I know how to limit the min, max, and close buttons on individual forms, but haven't found anything that talks about the Main Application itself. Any help would be greatly appreciated!