CrossHairsLeave

 

This event is generated whenever the user is in the crosshairs mode (see Toolbar) and the user moves the mouse cursor outside of the plot area.  Use this event to perform operations specific to whenever the crosshairs is not visible. 

                                                                                                                                                                                                                                                                     

Example                                                                                             

'XYChartCtl1 is the name of the XY Chart control instance placed on the form 

'Typcially, if coordinate values are being displayed when the crosshairs are enabled, these same label controls are hidden when the CrossHairsLeave event occurs

Private Sub XYChartCtl1_CrossHairsLeave()            

    X1Label.Visible = False   'Hide control used for x-coordinate of the first X-axis

    X2Label.Visible = False   'Hide control used for x-coordinate of the second X-axis

    Y1Label.Visible = False   'Hide control used for y-coordinate of the first Y-axis

    Y2Label.Visible = False   'Hide control used for y-coordinate of the second Y-axis

    Y3Label.Visible = False   'Hide control used for y-coordinate of the third Y-axis

    Y4Label.Visible = False   'Hide control used for y-coordinate of the fourth Y-axis

    Y5Label.Visible = False   'Hide control used for y-coordinate of the fifth Y-axis

End Sub

 

See Also

Events     CrossHairsSelected     CrossHairsNotSelected     CrossHairsMove