| Chat with a LIVE Microsoft
Access Expert! |
||||
|
||||
|
#1
|
||||
|
||||
|
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,
__________________
.................................................. ...... 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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |