hello, I have a listview1 control and I would like to write the items currently displayed into an array. I also need to detect when the content visible (ex. via scroll click) changes. Please help. Thanks in advance.
Printable View
hello, I have a listview1 control and I would like to write the items currently displayed into an array. I also need to detect when the content visible (ex. via scroll click) changes. Please help. Thanks in advance.
As far as the scroll.. you will have to hook the scrollbar with API's
but the items
VB Code:
For x = 0 to ListView1.Listitems.Count Debug.print Listview1.Listitems(x).Text Next
This would return the text in column 1. Is that all you are concerned with, or are you asking about the entire listview row?Quote:
Originally Posted by Static
First off thanks to all of you guys for the help. Yes I do need to access all three columns of the listview. As far as the API call for the scroll. Does anyone have any simple sample code for this?
I got the column deal working.
Listview1.ListItems.Item(i).Subitems(1).text
Now if I can get anyone to post sample code on how to detect the listview1 scroll. Any ideas?
I've never done it, but you should be able to subclass and detect the WM_SCROLL message (I think that's the right one).