Results 1 to 2 of 2

Thread: Which column in listview was clicked?

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2000
    Location
    Fresno, California, USA
    Posts
    195

    Post

    I can't find any way to find out which column in a listview control was clicked. I must be missing something. Any ideas?

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    ListView has ColumnClick event, which has ColumnHeader object which is the column you clicked.

    Code:
    Private Sub ListView1_ColumnClick(ByVal ColumnHeader As ColumnHeader)
        MsgBox "You clicked on cloumn " & ColumnHeader.Index 
    End Sub
    ------------------

    Serge

    Senior Programmer Analyst
    [email protected]
    [email protected]
    ICQ#: 51055819

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