title: VB.Net Chart: ToolTip for Series and Pixel Position
body: <p>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:</p>
  
  <pre><code>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 &gt; -1 AndAlso result.ChartArea IsNot Nothing Then
              Me.Chart1.Series("Result").ToolTip = "Value: #VALY{F}mA\nDate: #VALX"
  
          End If
      End Sub
  </code></pre>
  
  <p>What I am getting: <a href="https://i.stack.imgur.com/kgPWc.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kgPWc.png" alt="enter image description here"></a></p>
  
  <p>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?</p>
  
  <p>Thanks a lot.</p>
  
  <p>Hari</p>