Moves the cursor (the input focus) to a
different control.
Syntax
ControlSetFocus([<option>])
The option parameter is
optional. If you provide an option parameter, this parameter will
determine the control that the cursor moves to. Alternatively, call
the ControlSetFocus method of the object you want the cursor to
move to, and in this case do not provide an option parameter.
Parameters
option
Possible options are:
cancel gives the Cancel button
the focus and calls the button function
(as if the user pressed ESC).
default gives the default button the focus and calls the button
function
(as if the user pressed ENTER).
next jumps to the next control (equivalent to Tab)
previous jumps to the previous control (equivalent to Shift
+Tab)
Examples
ControlSetFocus('next')
Text_Box_2.ControlSetFocus()
|