469,628 Members | 1,001 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,628 developers. It's quick & easy.

Listview control Selected Items

20
Hi all

I am developning a small application in MS Access 2003 on a windows XP platform. I am using windows treeview and Listview controls. I have discovered that I can do a multi select of listview items but I cannot iterate through all selected items. the listview only has a selectedItem property and not selectedItems.

How do i iterate through the selected listview items?

Garudzo
Aug 7 '07 #1
1 11674
FishVal
2,653 Expert 2GB
Hi all

I am developning a small application in MS Access 2003 on a windows XP platform. I am using windows treeview and Listview controls. I have discovered that I can do a multi select of listview items but I cannot iterate through all selected items. the listview only has a selectedItem property and not selectedItems.

How do i iterate through the selected listview items?

Garudzo
Hi, Garudzo.

If you mean MSComctlLib.ListView, then you can try the following.
Expand|Select|Wrap|Line Numbers
  1.     Dim lvwList As MSComctlLib.ListView
  2.     '........
  3.     For Each itm In lvwList.ListItems
  4.         If itm.Selected Then '....
  5.     Next
  6.  
Aug 7 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

8 posts views Thread by Jon Ripley | last post: by
4 posts views Thread by Paddy | last post: by
3 posts views Thread by MikeY | last post: by
13 posts views Thread by Maheshkumar.R | last post: by
1 post views Thread by Shane | last post: by
2 posts views Thread by Mike | last post: by
6 posts views Thread by Rich Raffenetti | last post: by
4 posts views Thread by Bill-R | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.