WinStudio
IWSForm interface
Changes the focus on the form to a specified component.
object.SetFocus( string )
Part |
Description |
object | Required. The name of a valid form object. |
string | Required. The name of the component to receive the focus. |
Generally, you should avoid using this method to work around tab-order problems related to dynamic enabling/disabling of components. If a form is later modified, this method can cause unexpected behavior that is difficult to diagnose.
Sub Main() Application.FindForm("formName").SetFocus("componentName") End Sub