RectControl.LockRight

From Xojo Documentation

Property (As Boolean )
aRectControl.LockRight = newBooleanValue
or
BooleanValue = aRectControl.LockRight

Supported for all project types and targets.

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

Example

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

Me.LockRight = True