Form sizing

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • munkee
    Contributor
    • Feb 2010
    • 374

    Form sizing

    This has been the most annoying part to designing my system since the start.

    Basically all my forms open up in popup form purely because I didnt want to use up the full screen. Anyway my issue is that all my main forms are the same size within the design view, no discrepancy there. But when I open them up and open/close/switch between the forms some are opening slightly bigger than others, mostly height wise.

    Is there anything I can do to get what is shown in my design view to be correctly reflected in my actual form view? I have tried messing with the autoresize stuff, dialog, thing and sizable borders but it is still not right.


    Thanks,

    Chris
  • NeoPa
    Recognized Expert Moderator MVP
    • Oct 2006
    • 32662

    #2
    There are .AutoResize and .Width properties for the form, and a .Height property for each of the sections used. These should be enough to control the size of your form overall.

    Comment

    • munkee
      Contributor
      • Feb 2010
      • 374

      #3
      Thanks for the fast response Neo.

      I have actually also found you get some weird sizing changes if you open the form up in design view and make some edits then save and switch to form view.

      In order to get it reset back correctly you have to open the form in design view from the database window, click save and close it. Then open it up in form view from the database window.

      Comment

      • NeoPa
        Recognized Expert Moderator MVP
        • Oct 2006
        • 32662

        #4
        Absolutely Chris. Check out the Help section for .AutoResize for a fuller explanation of this.

        If you have your form set to Continuous View then you are well advised to have .AutoResize set to On.

        I have also found that, even with it set this way, the actual number of whole records shown still depends on the size it was at when last saved in Design Mode.

        Comment

        • munkee
          Contributor
          • Feb 2010
          • 374

          #5
          Ah I see now in the .AutoResize help!
          When opened, the Form window has the last saved size. To save a Form window's size, open the form, size the window, save the form by clicking Save on the File menu, and close the form. When you next open the form, it will be the saved window size.

          I have been messing around for ages with the border set to sizeable and trying to get it saved to the same size as my other forms. Oh well you learn something new everyday!

          Thanks for the help
          Last edited by NeoPa; Aug 2 '10, 02:45 PM. Reason: Just to make it more readable :)

          Comment

          Working...