×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Disable Close Button on Maximized form

Disable Close Button on Maximized form

Disable Close Button on Maximized form

(OP)
In a form I use DoCmd Maximize and I've set the properties
to false for the close button, but it reappears.
How do I get rid of the button ?

RE: Disable Close Button on Maximized form


You are refering to the 'control box' in the upper right hand corner of the window. Simplest way is to set the forms frame property to 'none'. This eliminates the 'control box' all together. When done, the Maximize action will then take on new characteristics however. You'll have to try it to see if it give you an 'acceptabe' effect.

Amiel
amielzz@netscape.net

RE: Disable Close Button on Maximized form

you can also enable/disable the close button directly either at design time...

set the form property "Close Button", under the format tab of the properties window, to False/True

or in a program with a VBA statement like...

Me.CloseButton = False

this will just gray-out the close button
& does not remove it from the windows frame

RE: Disable Close Button on Maximized form

We wouldn't kid ya'.

The property is not available at run time...further, setting the property at design time (ie. 'CloseButton' = false) works fine as long as you don't Maximize the form. If you do, the Close Button becomes available again...

Try it yourself and you'll see why dennie has asked the question.

Amiel
amielzz@netscape.net

RE: Disable Close Button on Maximized form

OK, I'm 1/2-way (maybe 3/4) a bozo!

At design time the button can be disabled in Access 2000. I don't know about other versions.  The button disappears when the form is maximized & reappears as grayed-out upon reshrinking. This I tested.

BUT! even in Access 2000 you CANNOT change the button programmatically. Again I tried & no go.

Amiel & Dennie, my apologies.

100 times...
I will test before I post! I will test before I post! I will...

RE: Disable Close Button on Maximized form

rafe is great! And we have one thing in common... test... test... test...

John A. Gilman
gms@uslink.net

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close