DesktopTextArea.SetFocus
From Xojo Documentation
Method
Gives the DesktopTextArea the focus, sending all keydown events to the DesktopTextArea and moving the cursor there.
Gives the DesktopTextArea the focus, sending all keydown events to the DesktopTextArea and moving the cursor there.