title: Panel Location Sliding Effect in VB.NET
body: <p>what's wrong in my code? my syntax is right, the logic and concept is right.
  but when i run the program and pressed the button(that make the panel slides UPWARD) the panel doesn't stop. even though I put a condition inside the timer.</p>
  
  <p>here's the code;</p>
  
  <pre><code>Private Sub btn_existing_Click(sender As Object, e As EventArgs) Handles btn_existing.Click
          timerPanelSlider3.Start()
          pnl_info1.Enabled = False
          pnl_options.Enabled = False
  End Sub
  
  Private Sub timerPanelSlider3_Tick(sender As Object, e As EventArgs) Handles timerPanelSlider3.Tick
      yy -= 5
      pnl_existing.Location = New Point(4, yy)
      'pnl_existing.BringToFront()
  
      If pnl_existing.Location.Y = 225 Then
          timerPanelSlider3.Stop()
      End If
  
  End Sub
  </code></pre>