Scrollbar possition in listview

G

Guest

Hi, Trying to figure out how i can tell if the scrollbar
is in the bottom of my listview, im using the listview to
display log files and i track them and add new items to
the bottom of the listview... the thing is i want the
listview to scroll to the last item all the time but only
when the scrollbar is in the bottom...

Thanks...
 
A

Alireza Kheyrollahi

Try using:
myListView.Items(myListView.Items.Count - 1).EnsureVisible()

Ali
 
G

Guest

Yeah well thats what im using... but as i said i only
want it to autoscroll when the scrollbar is in the
bottommost position... so i need to know either:

1. is the last item in the listview visible at all?
-or-
2. is the scrollbar in the bottom

Thanks
 

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