How to make the right corner closing cross invisible

This is a discussion on How to make the right corner closing cross invisible within the ms-access forums in Other Databases category; Dear reader, By opening an application I get always the main Access window with the closing cross [x] in the above right corner. Is there a possibility to make this closing cross invisible? All the settings in the Start-up form under Tools are disabled but the closing cross in the above right corner is still visible. Thanks for any help. Kind regards, Simon...

Go Back   Database Forum > Other Databases > ms-access

Database Forums

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-25-2008, 07:13 PM
Default How to make the right corner closing cross invisible

Dear reader,



By opening an application I get always the main Access window with the
closing cross [x] in the above right corner. Is there a possibility to make
this closing cross invisible?

All the settings in the Start-up form under Tools are disabled but the
closing cross in the above right corner is still visible.



Thanks for any help.

Kind regards,

Simon


Reply With Quote
  #2  
Old 08-25-2008, 11:22 PM
Default Re: How to make the right corner closing cross invisible

On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
wrote:

That's not impossible, but not easy either. What are you trying to
accomplish? That users can't close your app? There are other ways to
do that (e.g. see Cancel argument of Form_Unload). Remember some of
them will use Task Manager to nuke your app if you go down that way.
You can intercept that as well, but at an even higher cost.

So what are you really trying to accomplish?

-Tom.
Microsoft Access MVP


>Dear reader,
>
>
>
>By opening an application I get always the main Access window with the
>closing cross [x] in the above right corner. Is there a possibility to make
>this closing cross invisible?
>
>All the settings in the Start-up form under Tools are disabled but the
>closing cross in the above right corner is still visible.
>
>
>
>Thanks for any help.
>
>Kind regards,
>
>Simon
>

Reply With Quote
  #3  
Old 08-26-2008, 02:05 AM
Default Re: How to make the right corner closing cross invisible

Tom,

I try to accomplish that users can't close the application with this button
[x] but
they have to close the application via a form.

-Simon
"Tom van Stiphout" wrote in message
news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com...
> On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
> wrote:
>
> That's not impossible, but not easy either. What are you trying to
> accomplish? That users can't close your app? There are other ways to
> do that (e.g. see Cancel argument of Form_Unload). Remember some of
> them will use Task Manager to nuke your app if you go down that way.
> You can intercept that as well, but at an even higher cost.
>
> So what are you really trying to accomplish?
>
> -Tom.
> Microsoft Access MVP
>
>
>>Dear reader,
>>
>>
>>
>>By opening an application I get always the main Access window with the
>>closing cross [x] in the above right corner. Is there a possibility to
>>make
>>this closing cross invisible?
>>
>>All the settings in the Start-up form under Tools are disabled but the
>>closing cross in the above right corner is still visible.
>>
>>
>>
>>Thanks for any help.
>>
>>Kind regards,
>>
>>Simon
>>



Reply With Quote
  #4  
Old 08-26-2008, 04:45 AM
Default Re: How to make the right corner closing cross invisible

I hace a form ( Very Very old switchboard form probably from Access 2.)

This is always sitting behind anything else that is open. Briefly it has a
text box "CloseOK" which is either set to 1 0r 0 and a command button
"CloseDB" I hide the CloseOK Text box by making the border transparent and
the font colour the same as the background ans sometimes lock the control

CloseOK is set to 0 on opening the form

Then there is this bit of code which stops the form and consequently the Database
from closing

Private Sub Form_Unload(Cancel As Integer)

If CloseOK = 0 Then ' Must keep the switcboard open
DoCmd.CancelEvent
End If
End Sub

On pressing the CloseDB button we have

Sub CloseDB_Click
CloseOK = 1 ' OK to close database
RunCommand acCmdExit
Exit Sub

In practice I have all sorts or routines that check whether I am using an
MDB file (for developement purposes) where I can still access the CloseOK
control and an MDE file where it is not accessible .... but there I agree
with Tom , it does get complicated

HTH

Phil



"Simon van Beek" wrote in message
news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl...
> Tom,
>
> I try to accomplish that users can't close the application with this
> button [x] but
> they have to close the application via a form.
>
> -Simon
> "Tom van Stiphout" wrote in message
> news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com...
>> On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
>> wrote:
>>
>> That's not impossible, but not easy either. What are you trying to
>> accomplish? That users can't close your app? There are other ways to
>> do that (e.g. see Cancel argument of Form_Unload). Remember some of
>> them will use Task Manager to nuke your app if you go down that way.
>> You can intercept that as well, but at an even higher cost.
>>
>> So what are you really trying to accomplish?
>>
>> -Tom.
>> Microsoft Access MVP
>>
>>
>>>Dear reader,
>>>
>>>
>>>
>>>By opening an application I get always the main Access window with the
>>>closing cross [x] in the above right corner. Is there a possibility to
>>>make
>>>this closing cross invisible?
>>>
>>>All the settings in the Start-up form under Tools are disabled but the
>>>closing cross in the above right corner is still visible.
>>>
>>>
>>>
>>>Thanks for any help.
>>>
>>>Kind regards,
>>>
>>>Simon
>>>

>
>



Reply With Quote
  #5  
Old 08-26-2008, 06:13 AM
Default Re: How to make the right corner closing cross invisible

"Simon van Beek" wrote in message
news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl...
> Tom,
>
> I try to accomplish that users can't close the application with this
> button [x] but
> they have to close the application via a form.
>


Is this because you want an event to run when the form closes? The easist
way to force this to happen is the hide the database window using the
Tools/Startup options. Also, check out the "popup" and "modal" form
properties.

Regards,
Keith.

Reply With Quote
  #6  
Old 08-26-2008, 07:38 AM
Default Re: How to make the right corner closing cross invisible

I wonder why MS put that silly close button there anyway.
Why would we want a GUI common to all our applications?
Some developers envision their own GUI that is so superior to the
Windows standard that its implementation makes sacrificing uniformity
quite worthwhile.

What I can't understand is why there is an inverse relationship
between the competence of the poster and this design brilliance. How
can one be sufficiently creative to generate these new design ideas
without actually knowing anything about how the old is effected, or
how the new might be implemented? This is where I fail. Having
struggled with the Windows API extensively for ten or twelve years, I
can pretty much do whatever I want with the GUI but I never feel
motivated to do so. I have this quaint notion that if Sharon can close
a Word document by clicking a red X in its upper right hand corner, it
make sense for Sharon to be able to close Access applications and
forms by clicking red X's in their upper right hand corner.

I suppose a very few might have painted-themselves-into-a-corner
through idiotic design and extraordinarily foolish coding. But you
only see that in 95% of the posts here.

Well ... 99.44% max!

On Aug 26, 1:05*am, "Simon van Beek" wrote:
> Tom,
>
> I try to accomplish that users can't close the application with this button
> [x] but
> they have to close the application via a form.
>
> -Simon
> "Tom van Stiphout" wrote in messagenews:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax .com...
>
>
>
> > On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
> > wrote:

>
> > That's not impossible, but not easy either. What are you trying to
> > accomplish? That users can't close your app? There are other ways to
> > do that (e.g. see Cancel argument of Form_Unload). Remember some of
> > them will use Task Manager to nuke your app if you go down that way.
> > You can intercept that as well, but at an even higher cost.

>
> > So what are you really trying to accomplish?

>
> > -Tom.
> > Microsoft Access MVP

>
> >>Dear reader,

>
> >>By opening an application I get always the main Access window with the
> >>closing cross [x] in the above right corner. Is there a possibility to
> >>make
> >>this closing cross invisible?

>
> >>All the settings in the Start-up form under Tools are disabled but the
> >>closing cross in the above right corner is still visible.

>
> >>Thanks for any help.

>
> >>Kind regards,

>
> >>Simon


Reply With Quote
  #7  
Old 08-26-2008, 07:58 PM
Default Re: How to make the right corner closing cross invisible

Dear all,



In the form Tools/Startup….. I can’t find a tick box to make the Windows
window invisible.

And now I am look for code how to make the Windows window invisible so the
user can only close the application via a form.



-Simon

"Keith Wilby" wrote in message
news:48b3c4ff$1_1-at-glkas0286.greenlnk.net...
> "Simon van Beek" wrote in message
> news:48b38f25$0$13008$bf4948fe-at-news.tele2.nl...
>> Tom,
>>
>> I try to accomplish that users can't close the application with this
>> button [x] but
>> they have to close the application via a form.
>>

>
> Is this because you want an event to run when the form closes? The easist
> way to force this to happen is the hide the database window using the
> Tools/Startup options. Also, check out the "popup" and "modal" form
> properties.
>
> Regards,
> Keith.



Reply With Quote
  #8  
Old 08-26-2008, 10:40 PM
Default Re: How to make the right corner closing cross invisible

To make the Windows windows invisible you can:

1. Turn off your computer;
2. Use Linux;
3. Press ;
4. Drape your last pervious sex partner's undies over the monitor (may
smell if they are animal skins!).
5. Add this key to the registry: HKEY_LOCAL_MACHINE\System
\CurrentControlSet\Services\i8042prt\Parameters\Cr ashOnCtrlScroll and
set its value to 1; later press control and scroll lock at the same
time.

I'm sure there are other ways. In your case, I recommend:
6. Don't turn the computer on.

On Aug 26, 6:58*pm, "Simon van Beek" wrote:
> Dear all,
>
> I can’t find a tick box to make the Windows
> window invisible.

Reply With Quote
  #9  
Old 08-26-2008, 10:53 PM
Default Re: How to make the right corner closing cross invisible

On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
wrote:

Hi Simon,
I would phrase it a bit more elegantly than Lyle, but I do feel he is
right on the substance. It is REALLY unusual to require this sort of
functionality; there usually is a MUCH better and more compatible
alternative.
I hope you won't be offended and will take the criticism to heart.
Perhaps you will post a new message that starts with: "I want to do
ABC and the best way I can think of doing that is to diable the Close
Application button. Can you suggest better alternatives?"

-Tom.
Microsoft Access MVP


>Tom,
>
>I try to accomplish that users can't close the application with this button
>[x] but
>they have to close the application via a form.
>
>-Simon
>"Tom van Stiphout" wrote in message
>news:dvp6b4d95esjkoho5f5kna4k9u7b2dksii-at-4ax.com...
>> On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
>> wrote:
>>
>> That's not impossible, but not easy either. What are you trying to
>> accomplish? That users can't close your app? There are other ways to
>> do that (e.g. see Cancel argument of Form_Unload). Remember some of
>> them will use Task Manager to nuke your app if you go down that way.
>> You can intercept that as well, but at an even higher cost.
>>
>> So what are you really trying to accomplish?
>>
>> -Tom.
>> Microsoft Access MVP
>>
>>
>>>Dear reader,
>>>
>>>
>>>
>>>By opening an application I get always the main Access window with the
>>>closing cross [x] in the above right corner. Is there a possibility to
>>>make
>>>this closing cross invisible?
>>>
>>>All the settings in the Start-up form under Tools are disabled but the
>>>closing cross in the above right corner is still visible.
>>>
>>>
>>>
>>>Thanks for any help.
>>>
>>>Kind regards,
>>>
>>>Simon
>>>

>

Reply With Quote
  #10  
Old 08-27-2008, 01:51 AM
Default Re: How to make the right corner closing cross invisible

On Aug 26, 9:53*pm, Tom van Stiphout wrote:

> I would phrase it a bit more elegantly than Lyle


Are you suggesting that "Drape your last previous sex partner's undies
over the monitor (may
smell if they are animal skins!)." is inelegant?
The relationship between undies and Access/VBA is clearly documented
at http://www.the-lingerie-post.com/200...-and-swimwear/..
"C-String" is a VBA function name.
Reply With Quote
Reply


Thread Tools
Display Modes



All times are GMT -4. The time now is 04:33 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by bbpixel2008 :: jvbPlugin R1013.368.1

Search Engine Friendly URLs by vBSEO 3.1.0
vB Ad Management by =RedTyger=
In an effort to better serve ads to our visitors, cookies are used on Mydatabasesupport.com. For more information, check out our Privacy Policy.