ContainerControl.AllowFocus

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

If True, the control will be included in the Tab order and can accept the focus. The GotFocus and LostFocus events are called at the appropriate times.

Notes

Some controls automatically allow focus, e.g. text fields or lists, so they do not have AllowFocus property.

fa-info-circle-32.png
Not all controls allow focus on every platform.

Sample Code

This code enables the AllowFocus property. It is in the Open event of the control.

Me.AllowFocus = True