Here's a sample code that demonstrates the problem:
Code: Select all
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TChart1.Aspect.View3D = False
mySeriesPoints = New Steema.TeeChart.Styles.Points(Me.TChart1.Chart)
mySeriesPoints.Cursor = Cursors.Hand
Call mySeriesPoints.FillSampleValues(50)
mySeriesLine = New Steema.TeeChart.Styles.Line(Me.TChart1.Chart)
mySeriesLine.Cursor = Cursors.Hand
Call mySeriesLine.FillSampleValues(50)
AddHandler Me.TChart1.ClickSeries, AddressOf Me.clickSeries
End Sub
Private Sub clickSeries(ByVal sender As Object, ByVal s As Steema.TeeChart.Styles.Series, ByVal valueIndex As Integer, ByVal e As System.Windows.Forms.MouseEventArgs)
MsgBox(s.Title & " clicked!", MsgBoxStyle.Information)
End Sub