Control Box, Min, Max, Close Button

J

John C.

I have a form that is opened by code.

The form is set to not show min/max/close/control box.
Dialog and modal selections are set to no

After opening the code maximizes the form.

When in maximized state, the form displays a restore
control.

How can I prevent the display of the restore control?
 
J

John C.

I forgot to say that if I make the form a pop-up, no
controls are displayed, but the user can still double-
click on the control header and restore the form to normal
view.

Also, if I make the form a modal, the restore control is
still displayed.
 
T

TC

I know that you can not get rid of the Close box (by any normal means) when
the form is maximized. This might apply to Restore as well (I don't have
Access here to check.) %$#@!iung illogical, IMO.

HTH,
TC
 
J

jeff Conrad

Hi,

If you have a DoCmd.Maximize statement in your form's code
Open event, the Form's Restore and Close button will still
appear. If you would still like to get rid of them and
maintain the form at maiximized state, you might try the
code here:

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

Works pretty good.
Hope that helps,
Jeff Conrad
Bend, Oregon
 

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