2 pièce(s) jointe(s)
Méthode Sortkey introuvable pour le composant ListView
Bonjour à tous,
La méthode SortKey (Ainsi que Sortorder et Sorted) est introuvable alors qu'elle se trouve dans la bibliothèque lorsque j'accède à la définition.
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| Private Sub ListView1_ColumnClick(ByVal ColumnHeader As MSComctlLib.ColumnHeader)
Static ColumnIndex As Integer
If ColumnIndex <> ColumnHeader.Index Then
ColumnIndex = ColumnHeader.Index
ListView1.SortKey = ColumnHeader.Index - 1
ListView1.SortOrder = lvwAscending
Else
If ListView1.SortOrder = lvwAscending Then ListView1.SortOrder = lvwDescending _
Else ListView1.SortOrder = lvwAscending
End If
ListView1.Sorted = True
End Sub |
Pièce jointe 206033
L'erreur est la suivante :
Citation:
Method or data emeber not found
Voici les composants du projet :
Pièce jointe 206034
Merci pour votre aide