last item in a listview

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top