I have written a Windows form application that will plot a chart on a click of a button. I managed to successfully display the chart. I decided to add some extra features on the chart where when I move the mouse across the chart area, I will have a Point object that will set the cursor's pixel position for the X-axis on chart and at the same time, a ToolTip shall indicate the X and Y value at the intersection of the pixel position and the series. This is my current event:
Private Sub Chart1_MouseMove(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Chart1.MouseMove
Dim mousepoint As Point = New Point(e.X, e.Y)
Chart1.ChartAreas(0).CursorX.Interval = 0
Chart1.ChartAreas(0).CursorX.SetCursorPixelPosition(mousepoint, True)
Dim result As HitTestResult = Chart1.HitTest(e.X, e.Y)
If result.PointIndex > -1 AndAlso result.ChartArea IsNot Nothing Then
Me.Chart1.Series("Result").ToolTip = "Value: #VALY{F}mA\nDate: #VALX"
End If
End Sub
Of course this looks good, but my problem is the ToolTip only show when my cursor touches the Result series. When I move the cursor away from the Result series, it vanishes. Is there a way to show the ToolTip on the chart as long as there is an intersect between the Series and the pixel position line?
Thanks a lot.
Hari

Touch the series?? What does this mean ? u mean hovers over the Series - Christopher H.MouseLeaveevent as well...isn't it obvious ?(not sure though) - Christopher H.