How To: Use the Focus Control Method
You can use the focus method of certain controls with one of the following rule actions to set focus to a specific control at runtime:
- Execute a control's [Focus] method
- Execute a subview control's [Focus] method
- Execute a view control's [Focus] method that was opened in a subform
- Execute a form control's [Focus] method that was opened in a subform
Considerations
- When using the focus method, it is important to note that the control must be visible at runtime when executing the rule action.
- The execution type of the preceding actions are important when using the focus method. It does not make sense for example when using an execution type of asynchronous and the focus method is affected by one of the actions and might override the focus action. See the definitions of execution types for more information and how it might affect the focus method.