Control.HorizontalAnchor (Access)

Gets or sets an AcHorizontalAnchor constant that indicates how the control is anchored horizontally within its layout. Possible return values are acHorizontalAnchorBoth - The control is stretched horizontally across its layout, acHorizontalAnchorLeft - The control is anchored to the left side of its layout, acHorizontalAnchorRight - The control is anchored to the right side of its layout.

The default value is acHorizontalAnchorLeft.


CreateControl.HorizontalAnchor = acHorizontalAnchorBoth