BevelButton.AllowFocus

From Xojo Documentation

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

New in 2019r2

Supported for all project types and targets.

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

Sample Code

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

Me.AcceptFocus = True