DesktopWindow.SetFocus

From Xojo Documentation

Method

DesktopWindow.SetFocus()

New in 2021r3

Supported for all project types and targets.

Sets the focus to the window, leaving no control with the focus.

Notes

Use the SetFocus method of the DesktopUIControl class to set the focus to a particular control in the window.