XY Chart NET 3 Control Reference
CrossHairsSelected Event
This event is generated whenever the user selects the crosshairs toolbar button (see Toolbar).  Use this event to perform operations specific to whenever the crosshairs toolbar button is selected.
Syntax
[Visual Basic]
Event CrossHairsSelected()
[C#]
CrossHairsSelected()
[C++]
CrossHairsSelected()
       
Example
' 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
                       
                       
See Also

 

 


© 2003 - 2013 ControlEng Corporation. All rights reserved.