Solved

how to scroll to last item of a listview

Posted on 2009-03-31
3
587 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 

Author Comment

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

Accepted Solution

by:
jpaulino earned 500 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

If you haven’t already, I encourage you to read the first article (http://www.experts-exchange.com/articles/18680/An-Introduction-to-R-Programming-and-R-Studio.html) in my series to gain a basic foundation of R and R Studio.  You will also find the …
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.
The viewer will learn how to implement Singleton Design Pattern in Java.
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

726 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