SetFocus

This method moves the focus to a specified control or form.

Syntax

object.SetFocus

Parameters

object
Object expression that evaluates to a form or control.

Return Value

None.

Remarks

The object must be a visible Form object or control that can receive the focus. After invoking the SetFocus method, any user input is directed to the specified form or control.