Share via


IMsRdpClientAdvancedSettings::put_GrabFocusOnConnect (Windows Embedded CE 6.0)

1/6/2010

This method sets a value that specifies whether the ActiveX client control will obtain the UI focus while connecting to a server.

Syntax

HRESULT put_GrabFocusOnConnect( 
    VARIANT_BOOL fGrabFocusOnConnect
);

Parameters

  • fGrabFocusOnConnect
    [in] VARIANT_BOOL specifying whether the ActiveX client control will obtain the UI focus while connecting to a server.

    Set this parameter to VARIANT_TRUE to specify that the control will obtain the UI focus. Otherwise, set this parameter to VARIANT_FALSE.

    The default value is VARIANT_TRUE.

Return Value

Returns S_OK if successful.

Remarks

You can set this to VARIANT_FALSE to allow a container to determine when the ActiveX client control gets the focus.

Requirements

Header mstsax.h, mstsax.idl
Library Mstsax.lib
Windows Embedded CE Windows CE .NET 4.0 and later

See Also

Reference

IMsRdpClientAdvancedSettings Methods for Connections, Timeouts, Intervals, and Events
IMsRdpClientAdvancedSettings
IMsRdpClientAdvancedSettings::put_GrabFocusOnConnect