Disappearing Min/Max buttons on maximized forms

  • Thread starter robert demo via AccessMonster.com
  • Start date
R

robert demo via AccessMonster.com

I noticed that my Min/Max/Close buttons on maximized forms have disappeared.
The Access application Min/Max/Close buttons, however, are still present.

These maximized forms have the following settings:

Control Box -- Yes
Min Max Buttons -- Both Enabled
Close Button -- Yes
Border Style -- Thin

I use DoCmd.Maximize to maximize most of my forms in the Form Load event.
This "disappearance" problem is only present on the maximized forms. When I
comment out the DoCmd.Maximize line
of code, the form loads in a non-maximized state and the buttons for the form
are visible. If I then click on the maximize button for the non-maximized
form, the form maximizes but the buttons for the form disappear again.

It's really annoying when I accidentally click on the Close button for Access
thinking it was for the form and then having Access shutdown on me. I can see
this happening to my users as well and they will not be pleased.

What happened to the buttons? How can I force them to appear when my forms
are maximized?

Any help is appreciated.
 
A

Allen Browne

This is a long-standing problem, and you probably need to use API calls to
handle it.

This article does the reverse of what you want:
Remove Close button from maximized forms
at:
http://www.mvps.org/access/api/api0022.htm

Hopefully you can use the API calls to go the other direction also.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.

message
news:[email protected]...
 
R

robert demo via AccessMonster.com

Thanks for the response. I haven't checked out the article you recommended
yet.

In doing some more research, and as strange as it may seem, I've noticed that
the menu bars that have this problem are unable to display the "Ask a
Question" box. It's not that the box is hidden, it's not anywhere to be
found on the menubar (Right clicking on the menu bar and selecting customize
does not show the box).

I have three custom menus. The two that have the box available (it doesn't
matter if it is hidden), work fine and display the form Min/Max buttons when
the form is maximized. The other form and the Access default menu bar do not
have the "Ask a Question" box available and form min/max buttons are also not
available when a form is maximized.

With regards to the Access default menubar, I've tried resetting it to the
defautlt many times with no luck. I've also reinstalled Access, again with
no positive results.

I need to import my tired, old dB into a new dB anyway, and maybe that will
solve the problem. Who knows.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top