Scroll to last item in listview

D

David

Would someone mind explaining how I can get a listview to scroll down and
show the last item.

I am creating a history log that receives records from the serial port and I
need the most recent item to be shown while the older items are either push
up or down.

A highlighted last entry would be an added bonus also.

Thanks in advance

Regards

David
 
H

Herfried K. Wagner [MVP]

David,

David said:
Would someone mind explaining how I can get a listview to scroll down and
show the last item.
[...]
A highlighted last entry would be an added bonus also.

\\\
Dim lvi As ListViewItem = Me.ListView1.Items.Add(...)
lvi.Selected = True
lvi.EnsureVisible()
///
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top