|
-
Feb 15th, 2007, 10:35 AM
#1
Thread Starter
Addicted Member
listview equivalent of List1.ListIndex
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.
212 will lead you to the truth
-
Feb 15th, 2007, 11:18 AM
#2
Re: listview equivalent of List1.ListIndex
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
JPnyc rocks!! (Just ask him!)
If u have your answer please go to the thread tools and click "Mark Thread Resolved"
-
Feb 15th, 2007, 02:05 PM
#3
Re: listview equivalent of List1.ListIndex
 Originally Posted by Static
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?
-
Feb 15th, 2007, 05:07 PM
#4
Thread Starter
Addicted Member
Re: listview equivalent of List1.ListIndex
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?
212 will lead you to the truth
-
Feb 15th, 2007, 06:03 PM
#5
Thread Starter
Addicted Member
Re: listview equivalent of List1.ListIndex
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?
212 will lead you to the truth
-
Feb 15th, 2007, 06:10 PM
#6
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|