By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,399 Members | 960 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,399 IT Pros & Developers. It's quick & easy.

Listview control Selected Items

P: 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
Share this Question
Share on Google+
1 Reply


FishVal
Expert 2.5K+
P: 2,653
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.