471,863 Members | 933 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

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 12233
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
NeoPa
reply views Thread by NeoPa | last post: by
reply views Thread by YellowAndGreen | last post: by
aboka
reply views Thread by aboka | last post: by

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.