XY Chart NET 3 Control Reference > Events > CrossHairsMove Event |
[Visual Basic] Event CrossHairsMove() |
[C#] CrossHairsMove() |
[C++] CrossHairsMove() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_CrossHairsMove() Handles XYChartNETCtl1.CrossHairsMove 'Enable label used to display crosshairs' x-coord If Not X0Label.Visible Then X0Label.Visible = True 'Enable label used to display crosshairs' y-coord If Not Y0Label.Visible Then Y0Label.Visible = True With XYChartNETCtl1 X0Label.Text = .XCoordinate(0) 'Display crosshairs' x-coord in label X0Label Y0Label.Text = .YCoordinate(0) 'Display crosshairs' y-coord in label Y0Label End With End Sub