Restore button

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.
 
R

rsbonta

Allen,

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

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

Respectfully,

RSBont
 
J

Jeff Conrad

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.
 
R

rsbonta

Actually, Jeff:

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

Thx
 
J

Jeff Conrad

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.
 
Top