Link to home
Start Free TrialLog in
Avatar of David_Gray789
David_Gray789

asked on

Disable Restore button on forms

I have read some questions and answers on this subject and would like to know if anyone has any code I could put in the ON RESIZE event of my form so that if the user presses the restore button my form just maximizes again?


Why didn't MS make an option to disable it like the close and min/max buttons.

Thanks in advance for any assistance.
ASKER CERTIFIED SOLUTION
Avatar of thenelson
thenelson

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of thenelson
thenelson

If you want to drive your users nuts change the timer interval to 5000 ;-))
Avatar of David_Gray789

ASKER

Thanks for that answer, that will work. But there must be a more elegant solution.

Is there a way to get the window state programatically so you only fire docmd.maximize if the form isn't maximized?  
Try using the Form_Resize event

Dave
I gave him an answer that works.