stopping a form from being "restored"

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • matthardwick
    New Member
    • Apr 2008
    • 19

    stopping a form from being "restored"

    Hey everyone, I am always using this site for tips and things, but can't find an answer to this one, and thought it was about time that I got my own account!

    I have a form, that maximizes [sic] on form load but,

    I want to prevent the use from restoring the form, if you see in the top right, the restore button is still there, allowing the user to restore the form... this makes the form very hard to use, is there a method of either preventing the restore in the first place... or maximising again as soon as the form is put back to it's restored state.

    Thanks in advance.

    Matt.
  • Stewart Ross
    Recognized Expert Moderator Specialist
    • Feb 2008
    • 2545

    #2
    Hi. In the form properties set the Min and Max button property to None. This will remove the Min and Max controls from the top corner of the form.

    -Stewart
    Attached Files

    Comment

    • matthardwick
      New Member
      • Apr 2008
      • 19

      #3
      It's already set to none. I wanted to know how to stop the form from being restored, removing the restore button, not how to stop it from being min/maxed which is what your solution would solve.

      If you maximise a window you will see that the restore button appears, and it can't be got rid of.


      like so:

      Comment

      • nspader
        New Member
        • Mar 2008
        • 78

        #4
        I would then disable control buttons and place an Exit command button on your form. That should do it for you.

        Stewart was right however about max, min. If it is set to none FOR THAT FORM PAGE then it sounds like some corruption has occured you may want to think about repairing Access or at least the DB.

        Nick

        Comment

        • Megalog
          Recognized Expert Contributor
          • Sep 2007
          • 378

          #5
          When I saw this post initially, I tinkered in my Access 2007 copy and couldnt get rid of the 'Restore' option, when the form was maximized. So, I dont think he's having any issues with corruption, I think it's just how the 2007 GUI behaves.

          Matt, you could get around this by switching your Document Window Options (under Access Options > Current Database) to 'Tabbed Documents' instead of 'Overlapping Windows', depending on how your forms are laid out. That eliminates all minimize/maximize/restore options by forcing all windows to be maximized with tabs, but it is a database-wide change.

          Comment

          Working...