Device.SetCooperativeLevel(Control,CooperativeLevelFlags) Method (Microsoft.DirectX.DirectInput)

Establishes the cooperative level for this instance of the device. The cooperative level determines how this instance of the device interacts with other instances of the device and the rest of the system.

Definition

Visual Basic Public Sub SetCooperativeLevel( _
    ByVal parent As ControlLeave Site, _
    ByVal flags As CooperativeLevelFlags _
)
C# public void SetCooperativeLevel(
    ControlLeave Site parent,
    CooperativeLevelFlags flags
);
C++ public:
void SetCooperativeLevel(
    ControlLeave Siteparent,
    CooperativeLevelFlags flags
);
JScript public function SetCooperativeLevel(
    parent : ControlLeave Site,
    flags : CooperativeLevelFlags
);

Parameters

parent System.Windows.Forms.Control
flags Microsoft.DirectX.DirectInput.CooperativeLevelFlags