

| Type | Description | |||
| Variant | A Variant expression that specifies the key/identifier of the task from the current cursor location. |
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