Maximized form shows Restore button when maximized 
Author Message
 Maximized form shows Restore button when maximized

In Access 2000, all the forms I have that are set to maximize upon opening
seem to have in their command bar the Restore button.  Is there anyway
either to hide this button or to deactivate it (this problem did not occur
in the same database when it existed in the Access 97 format)?

bj



Sun, 29 Aug 2004 04:59:04 GMT  
 Maximized form shows Restore button when maximized
Look at www.master-office.com under "Developers" to find a solution that
removes the max, min and resore buttons on a maximized form. There are two
alternate solutions but I prefer #1.



Quote:
> In Access 2000, all the forms I have that are set to maximize upon opening
> seem to have in their command bar the Restore button.  Is there anyway
> either to hide this button or to deactivate it (this problem did not occur
> in the same database when it existed in the Access 97 format)?

> bj



Sun, 29 Aug 2004 06:18:31 GMT  
 Maximized form shows Restore button when maximized
Thanks: I tried the first solution but it didn't remove the Restore button.
The instructions are a little unclear.  Here's the code I used:

Forms!Switchboard.MenuBar = "DummyMenu"

    CommandBars("MyNewMenu").Enabled = True
    CommandBars("DummyMenu").Enabled = True

Anything I'm missing?

bj

Quote:
> Look at www.master-office.com under "Developers" to find a solution that
> removes the max, min and resore buttons on a maximized form. There are two
> alternate solutions but I prefer #1.



> > In Access 2000, all the forms I have that are set to maximize upon
opening
> > seem to have in their command bar the Restore button.  Is there anyway
> > either to hide this button or to deactivate it (this problem did not
occur
> > in the same database when it existed in the Access 97 format)?

> > bj



Mon, 30 Aug 2004 02:40:15 GMT  
 Maximized form shows Restore button when maximized
BarJ,

You need to use the code on this page:

http://www.mvps.org/access/api/api0022.htm

It'll expand the form to the current screen size, so you don't need to use
the maximize form option and it's very annoying restore button! I can give
you a hand with the coding as it's quite complicated!!

Dr_Doogie


Quote:
> Thanks: I tried the first solution but it didn't remove the Restore
button.
> The instructions are a little unclear.  Here's the code I used:

> Forms!Switchboard.MenuBar = "DummyMenu"

>     CommandBars("MyNewMenu").Enabled = True
>     CommandBars("DummyMenu").Enabled = True

> Anything I'm missing?

> bj


> > Look at www.master-office.com under "Developers" to find a solution that
> > removes the max, min and resore buttons on a maximized form. There are
two
> > alternate solutions but I prefer #1.



> > > In Access 2000, all the forms I have that are set to maximize upon
> opening
> > > seem to have in their command bar the Restore button.  Is there anyway
> > > either to hide this button or to deactivate it (this problem did not
> occur
> > > in the same database when it existed in the Access 97 format)?

> > > bj



Tue, 31 Aug 2004 01:20:21 GMT  
 Maximized form shows Restore button when maximized
in form design properties did you set the other tab\menu bar  to "your
menubar name"
in the on open you put the code:
CommandBars("your menubar name").Visible = False
or
CommandBars("your menubar name").Enabled = False
that should get you there it works in my app.


Quote:
> Thanks: I tried the first solution but it didn't remove the Restore
button.
> The instructions are a little unclear.  Here's the code I used:

> Forms!Switchboard.MenuBar = "DummyMenu"

>     CommandBars("MyNewMenu").Enabled = True
>     CommandBars("DummyMenu").Enabled = True

> Anything I'm missing?

> bj


> > Look at www.master-office.com under "Developers" to find a solution that
> > removes the max, min and resore buttons on a maximized form. There are
two
> > alternate solutions but I prefer #1.



> > > In Access 2000, all the forms I have that are set to maximize upon
> opening
> > > seem to have in their command bar the Restore button.  Is there anyway
> > > either to hide this button or to deactivate it (this problem did not
> occur
> > > in the same database when it existed in the Access 97 format)?

> > > bj



Sat, 04 Sep 2004 02:41:23 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. How to hide the maximize/restore and close-button on a maximized form

2. How to hide the maximize/restore and close-button on a maximized form

3. Q128196 Maximized Form Shows Control Box, Min/Max/Restore Buttons

4. Q128196 Maximized Form Shows Control Box, Min/Max/Restore Buttons

5. Maximized form still shows restore button

6. 'Restore Window' button on maximized Form

7. Help on removing the restore button on a maximized form

8. Disable Close, Restore Buttons on Maximized Form

9. Maximize form without restore button

10. Q: Deactivate the restore button on a maximized form


 
Powered by phpBB® Forum Software © phpBB Group