[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

how to scroll to last item of a listview

Posted on 2009-03-31
3
Medium Priority
?
596 Views
Last Modified: 2012-05-06
Hi, if you have a listview being populated with data; what is the command to automatically scroll to the last item being added to that listview
e.g.
 
lvMyItem = House.items.add("House of character")
lvMyItem.add("¬4,000")
etc..

Open in new window

0
Comment
Question by:borgb002
2 Comments
 

Author Comment

by:borgb002
ID: 24031784
BTW I'm using VB .NET 2008
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 total points
ID: 24032028
You can use EnsureVisible()
Example

        Dim item As New ListViewItem
        item.Text = "columm 1"
        item.SubItems.Add("column 2")
        Me.ListView1.Items.Add(item)
 
        item.EnsureVisible()

Open in new window

0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Navigation is an important part of web design from a usability perspective. But it is often a pain when it comes to a developer’s perspective. By navigation, it often means menuing. This is less theory and more practical of how to get a specific gro…
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses
Course of the Month19 days, 5 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question