Wrox Programmer Forums
|
Access Discussion of Microsoft Access database design and programming. See also the forums for Access ASP and Access VBA.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 5th, 2003, 01:15 PM
Authorized User
 
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default Access Close Button

On a form I would like to have only the Access close button (X) in the top right corner of my form.

When I do this there is a icon indicating a form in the extreme left top corner.
I would like to remove this icon. I can do that by setting ControlBox option of the form to No but when I do this thec Access close button on the top right corner disappears. I would prefer not to put a command button on the form to handle closing the form

How can I remove this icon and still use Access close button
 
Old November 5th, 2003, 03:20 PM
Authorized User
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To have only the close button, I think you just need to remove max and min buttons. and you can do that through the forms properties.
I don't think I know what you mean!

Quote:
quote:When I do this there is a icon indicating a form in the extreme left top corner.
is this icon always there? or only when you do "this"???

do you get a menu when u click on it? if so i think i know what you r talkin bout! I don't think you can just remove that, since it is not a buton, or a menu. One way of getting rid of that is to create a new menu bar with the component you want and hide the default menu bar. If you don't know how to do that, I can try and help :)

Sam Gharnagh
Jr. Programmer Analyst at MOH
Comp Sci at UofW
 
Old November 5th, 2003, 04:07 PM
Authorized User
 
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry for not being clear. Let me clarify.

These are the form setting:
Close Button = Yes
ControlBox = Yes
BorderStyle = Dialog
MaxMinBitton = None

The above setting gives me the Close button (X) but there is also the form icon in the top left corner in the shaded top section of form in the form view

If I change the setting to

Close Button = Yes
ControlBox = No
BorderStyle = Dialog
MaxMinBitton = None

Both the Close button (X) and the form icon disappears and there top shaded area of the form is blank (only the form name appears).

I would like to display the close button (X) onlt and not the form icon that shows in the shaded area.

I hpoe this clears up my question

Thanks
 
Old November 5th, 2003, 05:43 PM
Authorized User
 
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok now I know what you mean! sorry I was thinking of totally different thing!
What you want to do is possible in VB! I'm asuming you are using access since it's in a access forum. I haven't checked MS Access options yet but in VB you can change the BorderStyle property of a form and set it to toolwindow which gives you the smaller "x" close button without anything else on the Title Bar.

I'll get back to you bout access

Sam Gharnagh
Jr. Programmer Analyst at MOH
Comp Sci at UofW
 
Old November 8th, 2003, 07:58 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The "form icon" you are referring to is the control box?

My experience in Access97 is that on dialog borders you always have to have both the control box and the close button, or neither; ie you cannot have a close button without the control box - as you have found. Access Help suggests differently. Perhaps someone with more knowledge of this is able to explain it.

Clive

Clive Astley
 
Old November 12th, 2003, 09:49 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't think there is a GOOD way around it, so here's a BAD way around it -
change the borderstyle to none, then, in the Form Header, put your own Close button.

Steven

I am a loud man with a very large hat. This means I am in charge
 
Old December 5th, 2003, 11:54 AM
Friend of Wrox
 
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to Ben Horne
Default

Removing the close button is extremely possible using the Form Properties box. You need to be in the All tab. Then, scroll down until you see something called [b]Close Button/[b]. Set the property to No

Quote:
quote:Originally posted by Steven
 I don't think there is a GOOD way around it, so here's a BAD way around it -
change the borderstyle to none, then, in the Form Header, put your own Close button.

Steven

I am a loud man with a very large hat. This means I am in charge
Ben Horne
Madison Area Technical College student
-------------------------
http://community.webshots.com/user/valerian114

Go there. I have a lot of awesome photos that I rendered myself
 
Old June 9th, 2004, 01:25 PM
Registered User
 
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have lost Ms-Access Menu Bar as i have deselected all the check boxes in the startup window. please how can i get back the default menu bar

 
Old June 9th, 2004, 03:18 PM
Authorized User
 
Join Date: May 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How about placing a blank label on top of the corner, with close, etc. to match the background. Force it to foreground and size it just to cover the offending icon. It will still be there, but unseen, you will significantly reduce the likelihood that it will be clicked on.
 
Old July 7th, 2004, 02:53 PM
Registered User
 
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Stoneman, you probably solved this long ago (I see you were asking in November '03) but if not, here's a solution:

http://office.microsoft.com/assistan...CH010043151033

I want to do the same thing as you. I haven't tried this yet, but I bet you can set a registry path to a blank icon and tell the form to use that path on the OpenForm action; then, so that all your other forms don't use this path and end up with blank icons as well, you can disable this registry setting path on the Close action.

Hope this helps.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Help with the close(X) button. chobo2 C# 2008 aka C# 3.0 2 October 22nd, 2008 11:08 PM
access close button Vince_421 Access VBA 3 February 14th, 2007 12:01 PM
Close button removal canuck38 Access 4 July 16th, 2004 03:50 AM
Newbie Close Button Metastockuser Access 1 June 13th, 2004 04:12 PM
Disable Close Button Ben Horne Access VBA 1 April 12th, 2004 03:29 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.