SetFocus Method (Outlook Controls)

Moves the focus to this instance of an object.

Version Information

Version Added: Outlook 2007

Syntax

expression .SetFocus

expression A variable that represents an Outlook control object.

Remarks

If setting the focus fails, the focus reverts to the previous object and an error is generated.

By default, setting the focus to a control does not activate the control's window or place it on top of other controls.