ContainerControl.LockTop

From Xojo Documentation

Property (As Boolean )
aContainerControl.LockTop = newBooleanValue
or
BooleanValue = aContainerControl.LockTop

Supported for all project types and targets.

Determines whether the top edge of the ContainerControl should stay at a set distance from the top edge of the parent control, if there is one, or the owning Window.

Notes

Beginning with version 2009r5, LockTop and LockLeft default to True when you add a control to a window. Existing controls will be altered only if LockRight and/or LockBottom are not set.

Sample Code

Me.LockTop = True


See Also

UserGuide:Desktop Control Hierarchy