From Xojo Documentation

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

Property (As Integer )
aDesktopContainer.TabIndex = newIntegerValue
IntegerValue = aDesktopContainer.TabIndex

New in 2021r3

Supported for all project types and targets.

The DesktopContainer's position in the Tab Order.


On macOS, only controls controls where you enter data from the keyboard typically get the focus. In order to manually set focus to controls that don't allow keyboard entry, go to System Preferences, click on the Keyboard icon then on the Shortcuts tab and then check the Use keyboard navigation to move focus between controls checkbox.

Sample Code

This example sets the Container's TabIndex.

Me.TabIndex = 2