Another ListView question

W

whistler

I have a listview in a form where I am trying to permit users sorting by clicking on column headers.

I came up with this.....

Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
ListView1.Sorted = False
ListView1.SortKey = ColumnHeader.Index - 1

If ListView1.SortOrder = lvwAscending Then
ListView1.SortOrder = lvwDescending
Else
ListView1.SortOrder = lvwAscending
End If

ListView1.Sorted = True
End Sub




But now I get the error

Procedure declaration does not match description of event or procedure having same name

Can somebody give me a clue ?

regards, JOs


--------------= Posted using GrabIt =----------------
------= Binary Usenet downloading made easy =---------
-= Get GrabIt for free from http://www.shemes.com/ =-
 
D

Douglas J. Steele

If you add the ColumnClick event through the VB Editor, you'll find the
definition is

Private Sub ListView1_ColumnClick(ByVal ColumnHeader As Object)

End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top