Results 1 to 2 of 2

Thread: ListView.ItemClick, where are you?

  1. #1

    Thread Starter
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428

    Unhappy ListView.ItemClick, where are you?

    I have to figure out if the user has clicked on an item when ListView_Click is fired....
    SelectedIndexChanged is not gunno work for me, becase if the user clicks on an item that is already selected, it's not gunno fire....

    There is not HitTest function or anything I guess, what can I do?

  2. #2
    Hyperactive Member schuurke28's Avatar
    Join Date
    Feb 2001
    Posts
    402
    i hope i understood your question the right way.
    you could loop through all items and check if one is selected:


    VB Code:
    1. Dim item As ListViewItem
    2.  
    3.         For Each item In Me.listview1.Items
    4.             If item.Selected Then
    5.              'code
    6.             End If
    7.         Next
    8.  
    9.     End Sub

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width