Scrolling Items of list box using Mouse..

Check this code for scrolling the items present in the list box.. we are using the current position of the mouse and based on that we can select or scroll the items..

Private Sub ListView1_MouseMove(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseMove
Dim lvitem As ListViewItem
lvitem = Me.ListView1.GetItemAt(e.X, e.Y)
If Not itm Is Nothing Then
End If
lvitem = Nothing
End Sub


No responses found. Be the first to comment...

  • Do not include your name, "with regards" etc in the comment. Write detailed comment, relevant to the topic.
  • No HTML formatting and links to other web sites are allowed.
  • This is a strictly moderated site. Absolutely no spam allowed.
  • Name: