last item in a listview

  • Thread starter Thread starter Jon Vaughan
  • Start date Start date
J

Jon Vaughan

Hi,

This should be straight fwd , but I cant seem to do it , all I want to do is
programatically select the last item in a listview, so its always displayed

example :

my listview can display 3 items with out scrolling - after 3 items have been
added you dont see the new items being added, as they are out of focus for
the listview.

I tried

lstvItems.Items(lstvItems.Items.Count - 1).Focused = True



lstvItems.Items(lstvItems.Items.Count - 1).Selected = True



Any ideas ?



Jon
 
Back
Top