From Xojo Documentation

Property (As Boolean )
aRectControl.LockBottom = newBooleanValue
BooleanValue = aRectControl.LockBottom

Supported for all project types and targets.

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


This propery can be set in the control's Inspector. The following example sets it in code.

Me.LockBottom = True