From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aDesktopUIControl.LockRight = newBooleanValue
BooleanValue = aDesktopUIControl.LockRight

New in 2021r3

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.


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

Me.LockRight = True