Disable restore button

  • Thread starter Thread starter David Gray
  • Start date Start date
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.
 
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.
 
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.
 
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.
 
Back
Top