XY Chart NET 3 Control Reference > Events > CrossHairsSelected Event |
[Visual Basic] Event CrossHairsSelected() |
[C#] CrossHairsSelected() |
[C++] CrossHairsSelected() |
' XYChartNETCtl1 is the name of the XY Chart NET control instance placed on the form. Private Sub XYChartNETCtl1_CrossHairsSelected() Handles XYChartNETCtl1.CrossHairsSelected X0Label.Visible = True 'Enable label used to display crosshairs' x-coord Y0Label.Visible = True 'Enable label used to display crosshairs' y-coord 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