Restore button

  • Thread starter Thread starter Jim Franklin
  • Start date Start date
J

Jim Franklin

Hi,

I am using A2K and have an application with a number of forms, most of which
are always maximised, some of which load on top of each other. Can anyone
tell me if there is a way of getting rid of the close and restore buttons
for each form? I have tried using the form properties, but the restore
button always remains.

Thanks once again to anyone who can help,

Regards,
Jim F.
 
Disabling the Restore Button in A2K via VBA

Allen,

While I realize your post is from 2003, I tried your suggested code today - did exactly as you instructed. The code performed exactly as you described. However, it leaves the form (although a maximum size) in a state where it can be moved around and the ever-annoying scrollbars appear. I tried to move the maximized form back from whence it came to rid the window of the scroll bars and was completely unsuccessful.

Do you have a way to eliminate the restore button on an ACCESS maximized form, resutling from the DoCmd.Maximize command?

Respectfully,

RSBonta
 
in message:
Allen,

While I realize your post is from 2003, I tried your suggested code
today - did exactly as you instructed. The code performed exactly as
you described. However, it leaves the form (although a maximum size)
in a state where it can be moved around and the ever-annoying
scrollbars appear. I tried to move the maximized form back from whence
it came to rid the window of the scroll bars and was completely
unsuccessful.

Do you have a way to eliminate the restore button on an ACCESS
maximized form, resulting from the DoCmd.Maximize command?

I'm going to have to take a wild stab at this one since no parts of the
original thread were included in this post.

I'm going to assume you are using this code to maximize the form
and not show the restore button:

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

However, as you noted people can still move the form around by
clicking on the form's title bar. The only way I know of to achieve
both of your goals is to keep the existing code you have from the
Access Web, but then hide the form's title bar all together. To do
this, open the form in Design View and go to the Properties list
for the form. Set the Border Style to None.

That should do it.
 
Actually, Jeff:

This worked. It now has the "appearance" of being completely maximized with no buttons for the user to click except those I provide on the form with specific code behind them.

Thx!
 
in message:
Actually, Jeff:

This worked. It now has the "appearance" of being completely maximized
with no buttons for the user to click except those I provide on the form
with specific code behind them.

A wild stab and I hit something. Sweet.

You're welcome, good luck with your project.
 
Back
Top