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.
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
If you want to drive your users nuts change the timer interval to 5000 ;-))
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?
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
Dave
I gave him an answer that works.