IUIAutomationElement::SetFocus Method
Sets the keyboard focus to this UI Automation element.
Syntax
HRESULT SetFocus(VOID);
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Sets the keyboard focus to this UI Automation element.
Syntax
HRESULT SetFocus(VOID);
Return Value
Returns S_OK if successful, or an error value otherwise.
See Also