Causes a control to receive the focus, and executes the code specified by the onfocus event.
Syntax
HRESULT focus(void);
Return value
Returns S_OK if successful, or an error code otherwise.
Remarks
This method fires the onfocus event.
Back to top
Did you find this topic useful? Suggestions for other topics? Write us!
© 1999 Microsoft Corporation. All rights reserved. Terms of use.