From Xojo Documentation

Property (As Boolean )
aCanvas.AllowFocusRing = newBooleanValue
BooleanValue = aCanvas.AllowFocusRing

New in 2019r2

Supported for all project types and targets.

If True, the Canvas indicates that it has the focus with a ring around its border; if False, the appearance of the object does not change when it has the focus.


Setting this property to True has no effect on Windows or Linux. The default is True.

Sample Code

This code turns AllowFocusRing off.

Me.AllowFocusRing = False