Resizing forms

arage

Registered User.
Local time
Today, 01:36
Joined
Dec 30, 2000
Messages
537
Resizing forms
I can never align my form detail and footer properly.
When I run the form the window size is never exactly right to accommodate all the sections. It always seems as though the detail section is little bigger than the current screen size.
This frustrates me to no end because if I’m running the form & happen to do PAGE UP or DOWN you can see the detail section shift, ever so slightly as though it is exposing a hidden part of itself. This is also hateful because my detail section is nothing but a big tab page, and this tab pages relation to the other form sections cause it to have an unsightly indentation because the sections don’t match up properly when the form is run. I’d appreciate any advice.
 
Set the form property "Auto Resize" to no and while in the form in design view set the form to the size you want. It will stay that way when the form is closed and opened in normal view.
 
That doesn’t help since I was doing that from the beginning.
 
From "Help"

MoveSize Method Example
The following example moves the active window and changes its height, but leaves its width unchanged:
DoCmd.MoveSize 1440, 2400, , 2000
Action argument Description
Right The new horizontal position of the window's upper-left corner, measured from the left edge of its containing window. Enter the position in the Right box in the Action Arguments section of the Macro window.
Down The new vertical position of the window's upper-left corner, measured from the top edge of its containing window.
Width The window's new width.
Height The window's new height.

If you leave an argument blank, Microsoft Access uses the window's current setting.
You must enter a value for at least one argument.
Note Each measurement is in inches or centimeters, depending on the units set for Measurement System on the Number tab of the Regional Settings Properties dialog box in Windows Control Panel.
The MoveSize method carries out the MoveSize action in Visual Basic. For more information on how the action and its arguments work, see the action topic.

Syntax

DoCmd.MoveSize
[, down][, width][, height]

The MoveSize method has the following arguments.

Argument Description
right A numeric expression.
down A numeric expression.
width A numeric expression.
height A numeric expression.​
 
But which units these are?
 

Users who are viewing this thread

Back
Top Bottom