TextArea.SetFocus

From Xojo Documentation

Method

TextArea.SetFocus()

Supported for all project types and targets.

Gives the TextArea the focus, sending all keydown events to the TextArea and moving the cursor there.