473,387 Members | 1,379 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Scrollbar possition in listview

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
2 2536
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Kovan A. | last post by:
since i couldnt find anyway to scroll a listview having disabled the scrollbars, i am left with no choice but to make the current scrollers bigger any leads as to which beast i am up against for...
0
by: user | last post by:
Hello Where can i find which messages can i sent to ListView class ? I would like to send to it something like EM_SETSCROLLPOS to RichTextBox (i want to see always 'fresh data' in ListView so from...
0
by: Tim Bücker | last post by:
Hello. Is it really not possible to hide the scrollbars of a listview ( this.listview.Scrollable = false; ) but do some scrolling anyway ( for instance: PostMessage(this.listview.Handle,...
1
by: Grei | last post by:
how to manipulate ListView scrollbar? let's say i want to move Horizontal/Vertical scroll to some position. Also i need to read this position.
5
by: Frank Rizzo | last post by:
I reload the items in the listview on a regular schedule (i.e. clear the listview, then load it up with fresh values). I want add a convinience to the user whereby my application remembers the...
2
by: | last post by:
Hi All, How can I get to scroll bars of a listview, I am trying to sync two listviews so I need to overload one of the listview, How can I achieve this ? Thank You.
1
by: malpani.abhijit | last post by:
Hi, I am having a ListView component in my WinForm, when i add some images into it, it gives me a vertical scroll bar. What i want is, the horizontal scrollbar instead of vertical. Is there any...
0
by: Dave Kelly | last post by:
Using .NET 2 . I am trying to get a vertical scrollbar with the ListView control, when in the List view mode. The default behaviour when the number of items exceeds the vertical length is to...
1
by: Lubomir | last post by:
Hi, I have a ListView with one column and no header. How to display the horizontal scrollbar if one of the items is too long? Scrolable property is set to true. Thanks, Lubomir
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.