property HostContext.HitTest as ContextHitTestInfoEnum
Determines the host' objects that can be accessed at current cursor location

TypeDescription
ContextHitTestInfoEnum A ContextHitTestInfoEnum expression that specifies the valid properties that can be accessed at current cursor location.
The HitTest property determines the host' objects that can be accessed at current cursor location. For instance, if the HitTest property includes the exHTValidColumn flag, it indicates that the cursor hovers a column, and the Column property gives the index of the column from the cursor. The Context event notifies your application once the user right clicks the control. The HostContext property can be used on any event. 

The following sample changes the color of the task's frame, when the user right clicks the control:

Private Sub G2Host1_Context()
    With G2Host1
        If (.HostContext.HitTest And exHTValidBar) Then
            .Host.Items.ItemBar(.HostContext.Item, .HostContext.Bar, EXG2ANTTLibCtl.ItemBarPropertyEnum.exBarFrameColor) = RGB(255, 0, 0)
        End If
    End With
End Sub