how to scroll to last item of a listview

Posted on 2009-03-31
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
lvMyItem = House.items.add("House of character")

Open in new window

Question by:borgb002

Author Comment

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

Accepted Solution

jpaulino earned 500 total points
ID: 24032028
You can use EnsureVisible()

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

Open in new window


Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Close tabpage of custom control 9 33
Zip Folders Using Chilkat Routines 1 39
Variable Event ? 3 27
Footer for each row on Gridview 2 21
It’s quite interesting for me as I worked with Excel using for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (…
The viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
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.

776 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