Screen.SetFocus

Screen.SetFocus ( 

number ControlID )

Description

Sets the screen's input focus to the control whose control ID matches the specified id.

Note:  You cannot set focus to static controls or controls that are not visible, or disabled.

Parameters

ControlID

(string) The control ID of the control which you want to give focus to.

Returns

Nothing. You can use Application.GetLastError to determine whether this action failed, and why.

 

See also:  Related Actions