By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
458,114 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 458,114 IT Pros & Developers. It's quick & easy.

Scrollbar possition in listview

P: n/a
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...
Nov 20 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Try using:
myListView.Items(myListView.Items.Count - 1).EnsureVisible()

Ali

<an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
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...

Nov 20 '05 #2

P: n/a
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
-----Original Message-----
Try using:
myListView.Items(myListView.Items.Count - 1).EnsureVisible()
Ali

<an*******@discussions.microsoft.com> wrote in message
news:07****************************@phx.gbl...
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...

.

Nov 20 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.