Chat with a LIVE Microsoft Access Expert!
 
       
 

         

   

Go Back   Access World Forums > Microsoft Access Reference > Sample Databases

 
 
Chat with a LIVE Microsoft Access Expert!
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1  
Old 12-08-2005, 10:03 AM
ghudson's Avatar
ghudson ghudson is offline
Dazed & Confused
 
Join Date: Jun 2002
Location: USA
Posts: 6,044
ghudson has a spectacular aura aboutghudson has a spectacular aura about
Enable/Disable The Control Box X Button

Here is a sample Access 97 db that will show you how to disable and/or enable the control box X button that most Windows programs have in the upper right corner. Sometimes we do not want our users to exit a database unless they have clicked our custom exit button. Disabling the X button will prevent that option for when you have the need to control that function. This is demonstrated in the "fDisableControlBoxX" form. The public function is in the "dDisableControlBoxX" module.

As a bonus I have also include a form named "fTestCancelFromUnloadEvent" which will demonstrate how you can prevent a user from closing a form and also the application unless they do exactly what you want them to do.

Read this if you do not understand where to post your questions! >>> Please Read Before Posting

Please do not directly PM me with any questions related to my DisableControlBoxXOption example. Please do not post any questions related to my DisableControlBoxXOption example in the Samples forum. If you have a question related to the DisableControlBoxXOption sample... Please post your questions in the appropriate forum and include a link to this thread if you have a question or problem related to my DisableControlBoxXOption example. I will be glad to help if I see your post and if I am available.

Key Search Words: disable, prevent, cancel, control box x button, close x button, close x, close, corner,
Attached Files
File Type: zip DisableControlBoxXOption.zip (23.0 KB, 3114 views)
__________________
.................................................. ......
Searching this forum or Microsoft.com or MSDN.com or Google is a great way to discover and learn the answers to your Access programming questions.

Well if it seems to be real, it's illusion...

I am using Access 2007 with Windows XP

The Advanced Search function on this forum really does work.
.................................................. ......
Sponsored Links
Sponsored Links
Closed Thread

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Configure option button to output to memo box cdcox General 1 09-08-2005 08:26 AM
Much simplified combo box/text box issue etalent Forms 0 03-30-2004 06:18 AM
Change control button on focus aliasquark Forms 2 12-13-2002 04:13 AM
Set Calendar Control Combo Box Values lenard Modules & VBA 1 06-13-2002 11:09 AM
Using a Macro on a control button in a form kdonnel1 Macros 1 08-02-2000 10:30 AM


All times are GMT -8. The time now is 09:39 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
(c) copyright 2009 Access World