Disable restore button

D

David Gray

Hi,

Is there any way to disable the restore button on a form so that it can't be
resized?

I don't want to run Docmd.Maximize in an On Timer event to keep the form
maximized.

Thanks in advance for any assistance.
 
D

Douglas J. Steele

From the Help file:

Remove the Maximize and Minimize buttons from a form in Form view

1 Open the form in Design view.
2 Double-click the form selector to open the form's property sheet.
3 In the MinMaxButtons property box, click a setting.

Note: If the BorderStyle property for the form is set to None or Dialog, the
form won't have Minimize and Maximize buttons even if the MinMaxButtons
property is set to Min Enabled, Max Enabled, or Both Enabled.
 
D

David Gray

Thanks Douglas

I want to disable the Restore Button which is the button that looks like two
cascading windows and when you hover over it a tooltip comes up that says
Restore Window.
 
L

Ldraw

To remove it in a MDI net forms application set Maximized = false and
WindowState=Normal then size the child window in your code to the size of the
parent to get the maximum size. If you set Maximized = false and
WindowState=
Maximized you will still get the restore button. I am not sure why it
behaves like this but I was having the same problem when I saw your post.
 

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