Scroll ListView control to last item in .NET

This forum is dedicated to software development, talk about source code and programming functioncs, etc.
Post Reply
Stack-Tech
Site Admin
Posts: 6
Joined: Fri Jan 16, 2015 4:24 pm

Scroll ListView control to last item in .NET

Post by Stack-Tech » Fri Jan 23, 2015 12:30 am

One would think this would be easy to figure out right? Say you want to scroll to the bottom of a list view control to show the user the new items you've just added to the list.

Is as simple as this...

Example (VB.NET):

Code: Select all

       
                ListView1.EnsureVisible(ListView.Items.Count - 1)
                ListView1.Update()

Post Reply