Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Selected item in List View

Posted on 2004-08-09
4
Medium Priority
?
276 Views
Last Modified: 2010-05-02
How could I get the seleceted item(s) from a list view control as well which event is fired when an item is selected?
0
Comment
Question by:askmeaks
4 Comments
 
LVL 18

Accepted Solution

by:
JR2003 earned 200 total points
ID: 11760318
Private Function ProcessSelected()

Dim i As Long

With ListView1.ListItems
    For i = 1 To .Count
        If .Item(i).Selected Then
            'Put your code here for the selected item
        End If
    Next i
End With

End Function


The ItemClick event is fired when an item is selected.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Suggested Courses

963 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question