Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 299
  • Last Modified:

Display results from click on item in ListView

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
Morpheus7
Asked:
Morpheus7
1 Solution
 
Rgonzo1971Commented:
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
 
Morpheus7Author Commented:
Hi,

Many thanks for the reply. Could you please explain a bit more, as I am new to VB.
Thanks
0
 
CodeCruiserCommented:
Is it correct that you want to load another listview based on what user clicks on in the first listview?
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now