DesktopWindow.SetFocus
From Xojo Documentation
Method
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.
Sets the focus to the window, leaving no control with the focus.
Use the SetFocus method of the DesktopUIControl class to set the focus to a particular control in the window.