473,394 Members | 1,738 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Aug 25 '08 #1
11 2924
On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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
Aug 26 '08 #2
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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com...
On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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

Aug 26 '08 #3
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 Db
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" <Sv********@Versatel.nlwrote in message
news:48***********************@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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com...
>On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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


Aug 26 '08 #4
"Simon van Beek" <Sv********@Versatel.nlwrote in message
news:48***********************@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.

Aug 26 '08 #5
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" <SvanBee...@Versatel.nlwrote:
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" <no.spam.tom7...@cox.netwrote in messagenews:dv********************************@4ax .com...
On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<SvanBee...@Versatel.nlwrote:
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
Aug 26 '08 #6
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" <he**@there.comwrote in message
news:48**********@glkas0286.greenlnk.net...
"Simon van Beek" <Sv********@Versatel.nlwrote in message
news:48***********************@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.

Aug 26 '08 #7
On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com.. .
>On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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
Aug 27 '08 #8
Tom,

The only what I can say now is Lyle is a little bit frustrated and he needs
professional help and we are not able to help him.

Kind regards,

Simon

"Tom van Stiphout" <no*************@cox.netwrote in message
news:6l********************************@4ax.com...
On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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" <no*************@cox.netwrote in message
news:dv********************************@4ax.com. ..
>>On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<Sv********@Versatel.nlwrote:

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

Aug 27 '08 #9
Speaking of "professional" help someone wrote EnableTitleBarControls
and DisableTitleBarControls procedures and published them in CDMA back
in the previous century.
http://groups.google.com/group/comp....a49834e9e666a1

Oh, what a dilemma this is! He wrote EnableCloseButton and
DisableCloseButton procedures too.
http://groups.google.com/group/comp....49d160dcdcb973

Who could it have been?

They're not exactly what you want as they act on the Access window
instead of a form but they could easily be modified by anyone who
wasn't bone-dead lazy and bucket-of-rocks stupid, to meet your
request. I guess that explains why I didn't suggest them earlier.

Did I mention that the procedure writer said in the same thread, "I
have no idea why anyone Would_Want to do this. (I'm assuming there
must be some way to close, so why not let Access do it in what appears
to be a safe way)"? Right now in 2008 the bucket-of-rocks stupid
hypothesis seems promising.

On Aug 27, 1:48*am, "Simon van Beek" <SvanBee...@Versatel.nlwrote:
Tom,

The only what I can say now is Lyle is a little bit frustrated and he needs
professional help and we are not able to help him.

Kind regards,

Simon

"Tom van Stiphout" <no.spam.tom7...@cox.netwrote in messagenews:6l********************************@4ax .com...
On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
<SvanBee...@Versatel.nlwrote:
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" <no.spam.tom7...@cox.netwrote in message
news:dv********************************@4ax.com.. .
On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<SvanBee...@Versatel.nlwrote:
>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
Aug 27 '08 #10
What a long winded tale this is.

The reason that I have stopped the normal closing of a form (& Db) is that I
am using Peters "ShrinkerStretcher to resize a form and it's controls. If I
have modified a form in design view, switched to form view and save the
form, the size of every control gets changed. So it is essential that a
modified form can only be closed and saved from desigh view, not form view.

Maybe you did in in anticipation of things to come.

Phil
"lyle fairfield" <ly************@gmail.comwrote in message
news:a3**********************************@56g2000h sm.googlegroups.com...
Speaking of "professional" help someone wrote EnableTitleBarControls
and DisableTitleBarControls procedures and published them in CDMA back
in the previous century.
http://groups.google.com/group/comp....a49834e9e666a1

Oh, what a dilemma this is! He wrote EnableCloseButton and
DisableCloseButton procedures too.
http://groups.google.com/group/comp....49d160dcdcb973

Who could it have been?

They're not exactly what you want as they act on the Access window
instead of a form but they could easily be modified by anyone who
wasn't bone-dead lazy and bucket-of-rocks stupid, to meet your
request. I guess that explains why I didn't suggest them earlier.

Did I mention that the procedure writer said in the same thread, "I
have no idea why anyone Would_Want to do this. (I'm assuming there
must be some way to close, so why not let Access do it in what appears
to be a safe way)"? Right now in 2008 the bucket-of-rocks stupid
hypothesis seems promising.

On Aug 27, 1:48 am, "Simon van Beek" <SvanBee...@Versatel.nlwrote:
Tom,

The only what I can say now is Lyle is a little bit frustrated and he
needs
professional help and we are not able to help him.

Kind regards,

Simon

"Tom van Stiphout" <no.spam.tom7...@cox.netwrote in
messagenews:6l********************************@4ax .com...
On Tue, 26 Aug 2008 07:05:31 +0200, "Simon van Beek"
<SvanBee...@Versatel.nlwrote:
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" <no.spam.tom7...@cox.netwrote in message
news:dv********************************@4ax.com.. .
On Tue, 26 Aug 2008 00:13:06 +0200, "Simon van Beek"
<SvanBee...@Versatel.nlwrote:
>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

Aug 27 '08 #11
On Aug 27, 6:51*am, lyle fairfield <lyle.fairfi...@gmail.comwrote:
Speaking of "professional" help someone wrote EnableTitleBarControls
and DisableTitleBarControls procedures and published them in CDMA back
in the previous century.http://groups.google.com/group/comp..../msg/96a49834e...

Oh, what a dilemma this is! He wrote EnableCloseButton and
DisableCloseButton procedures too.http://groups.google.com/group/comp..../msg/6149d160d...

Who could it have been?
It wasn't this James. C.f.:

http://groups.google.com/group/comp....54712169e1eafe

"I found some code somewhere (perhaps Jeff's site), "

Even though I posted to CDMA in 1994,

http://groups.google.com/group/comp....7bff5d5affd8b8

the code I found was implemented after 1999.

James A. Fortune
CD********@FortuneJames.com
Aug 29 '08 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Stephen Poley | last post by:
I'd like to float an image to the bottom of a DIV containing several paragraphs, so that it is positioned to the right of the closing paragraphs (and preferably below the closing paragraphs if the...
4
by: Andy Fish | last post by:
Hi I have hunted around for this one but been unable to find any definitive answer. I have a simple frameset with one frame above another. by clicking a checkbox or some such in the lower...
9
by: Rajat Tandon | last post by:
Hello there, I am relatively new to the newsgroups and C#. I have never been disappointed with the groups and always got the prompt replies to my queries.This is yet another strange issue, I am...
2
by: dik | last post by:
Hi I have a lot of rows in my page (see below a sample). How can I make 3 rows invisible/visible at the same time in a group instead of row for row? Is this possible? <asp:Table id="Table1"...
4
by: NH | last post by:
Hi, I just cannot get this to work. I want to make a cell editable in a datagrid only if the value of another cell is something specific. I am able to capture the value of the other cell via the...
16
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
6
neo008
by: neo008 | last post by:
Hi All, I want control box of my MDI form Invisible. I dont want user to click on cross button to exit. I tried Unload events but I dont find it suitable for my project. Can somebody help?...
1
by: ArunDhaJ | last post by:
Hi, I'm in need of help for solving the following problem: I've a page with two div tag as follows: <div id="divNormalView" runat="server"> <asp:listbox id="listSelectedMembers"...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.