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

x
?
Solved

Display results from click on item in ListView

Posted on 2013-12-13
3
Medium Priority
?
294 Views
Last Modified: 2014-03-21
Hi,

I am using a ListView control to display items. When the user clicks on the taged entry, in the LV I would like to be able to display the results that would be returned from this action in another ListView control.
I attach the code I am using to generate the first ListView.

Any help would be appreciated.
ThanksLV.txt
0
Comment
Question by:Morpheus7
3 Comments
 
LVL 53

Accepted Solution

by:
Rgonzo1971 earned 2000 total points
ID: 39716926
Hi,

Maybe

Private Sub objListViewItem_MouseDown(sender As Object, e As System.Windows.Forms.MouseEventArgs) Handles ListView1.MouseDown
    Dim info As objListViewItemHitTestInfo = objListViewItem.HitTest(e.X, e.Y)
    MsgBox (info.Location.ToString())
    If Not IsNothing(info.SubItem) Then
        'info contain the information of the clicked column. You can then go through it's subitems if any
    End If
End Sub

Open in new window

Regards
0
 

Author Comment

by:Morpheus7
ID: 39721573
Hi,

Many thanks for the reply. Could you please explain a bit more, as I am new to VB.
Thanks
0
 
LVL 83

Expert Comment

by:CodeCruiser
ID: 39755035
Is it correct that you want to load another listview based on what user clicks on in the first listview?
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .

971 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