Solved

Selected item in List View

Posted on 2004-08-09
4
268 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 50 total points
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now