IASForm::SetFocus

This method sets the focus to a specified control.

Syntax

HRESULT SetFocus( IDispatch *pdispControl );

Parameters

pdispControl
Pointer to the control.

Return Values

NOERROR indicates success. If an error occurs, the appropriate HRESULT value is returned.

Remarks

Controls that do not receive user input such as a Clock control or a Label control do not accept focus.