How do you always keep the last item visible on a listview

How do you always keep the last item visible on a listview?
As items are added to a listview I want to see the last item added ,scrolling
visualbasicAsked:
Who is Participating?
 
RonaldBiemansConnect With a Mentor Commented:
use something like this

      Dim x As Integer
      With ListView1
      For x = 1 To 20
      .ListItems.Add Key:="foo" & x, Text:="foo" & x
      Next x
      .SelectedItem = .ListItems("foo20")
      .SelectedItem.EnsureVisible
      End With
      End Sub
0
 
iboutchkineCommented:
or just select the last row
listView1.Items(i).Selected = True

where i is count of the rows
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.