Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Moving the Scrollbar to the bottom in a Listview

Status
Not open for further replies.

stephenk

Programmer
Mar 12, 2001
21
AU
I am using a Listview in Report Mode and due to the number of List Items, the automatic scrollbar appears. By default, the scrollbar is at the top of the listview. How do I force the scrollbar to the bottom of the listview as I want to display the last few items when the form is loaded.
 
Something like this will move the list to the bottom



List.ListIndex = List.ListCount - 1


Killa
 
or even this now i actually read your request

i = listView1.ListItems.Count
listView1.ListItems(i).EnsureVisible

Hope this is more helpful
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top