Disable Restore Button On Menu Bar

H

Hiro

Hello Forum Members:

I've been looking for a solution for "Disable Restore Button on Menu Bar".
And someone gave me this code as module to try.
{code/}
Global OkToClose As Boolean
Function RemoveMenu()
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = False
Next I
End Function
Function RestoreMenu()
Dim mybar As CommandBar
Dim I As Integer
For I = 1 To CommandBars.Count
CommandBars(I).Enabled = True
Next I
End Function
{/code}
However, this removes all the menu bar (both Access built-in menu bar and
custom menu bar).

What I want to do is to disable or remove the Restore Button that is located
on the same line as the Access built-in menu bar or custom menu bar.

Is this possible?
 
B

boblarson

Is there a reason why you can't set it in the design view properties? You
can do that you know.
--
Bob Larson
Access World Forums Super Moderator
Utter Access VIP
Tutorials at http://www.btabdevelopment.com

__________________________________
 
H

Hiro

Hello Bob:

Thank you for your suggestion. Yes, I looked at the form design view. But
the Resotre Button can not be disabled or removed from there. I tried the
adjustments on Border Style, Control Box. I can disable only the Min., Max.,
and Close Buttons on the design view. There is no control to disable the
Restore Button. Am I not looking at the right place? Would you show me where
I need to look at?
 

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