|
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
|
|
|
November 5th, 2003, 01:15 PM
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
November 5th, 2003, 03:20 PM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
November 5th, 2003, 04:07 PM
|
Authorized User
|
|
Join Date: Jun 2003
Posts: 47
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
November 5th, 2003, 05:43 PM
|
Authorized User
|
|
Join Date: Sep 2003
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
November 8th, 2003, 07:58 AM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 129
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
November 12th, 2003, 09:49 PM
|
Friend of Wrox
|
|
Join Date: Jun 2003
Posts: 308
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
December 5th, 2003, 11:54 AM
|
Friend of Wrox
|
|
Join Date: Sep 2003
Posts: 451
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
June 9th, 2004, 01:25 PM
|
Registered User
|
|
Join Date: Jun 2004
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|
June 9th, 2004, 03:18 PM
|
Authorized User
|
|
Join Date: May 2004
Posts: 52
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
July 7th, 2004, 02:53 PM
|
Registered User
|
|
Join Date: Jul 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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.
|
|
|