Disable taskbar close option

steve711

Registered User.
Local time
Today, 00:59
Joined
Mar 25, 2004
Messages
166
Hello All.

I searched on here awhile back and downloaded a great little piece of code that would disable the taskbar close, file menu close, and the Access program close X.

The thing is the code works great when I call setenabledstate(false) one time on the start of my application. However, if the user opens another form (which they will do of course) the taskbar right click CLOSE option is no longer disabled.

Ok being the annoying little users that they are sometimes, they have figured this one out and for reasons unknown to me enjoy mucking it all up and using the taskbar to close the program. This is not what I want to happen. I even gave them a nice little, well actually LARGE, "Click Here to Close" button to click on.

Any help on this matter would be great. The code is rather lengthy and I will search for it again for a link to the rest of you in case it might help matters. I am using precisely as it is written.

Thanks.
 
steve711 said:
The thing is the code works great when I call setenabledstate(false) one time on the start of my application. However, if the user opens another form (which they will do of course) the taskbar right click CLOSE option is no longer disabled.

Could you put this code in the Load Event of each form? Bit of work, I know, but you only have to do it once, and cut and paste are wonderful things
 
The code works as advertised until I go back to the switchboard. Then the taskbar right clicking Access CLOSE option is available again.

I am calling the code on the on open event to no avail.
 

Users who are viewing this thread

Back
Top Bottom