titimoteph
Messages postés12Date d'inscriptionjeudi 31 octobre 2002StatutMembreDernière intervention27 novembre 2002 27 nov. 2002 à 12:24
Je sais pas si ca t'aide...
Dim strLine As String
Dim itmX As ListItem
strLine = "blablabla"
if ... Then
lstListe.ForeColor = vbRed
else
lstListe.ForeColor = vbBlack
End If
Set itmX = lstListe.ListItems.Add(, , strLine, , 1)
z24imad
Messages postés2Date d'inscriptiondimanche 29 août 2004StatutMembreDernière intervention14 août 2008 24 sept. 2004 à 21:39
Tu peux changer la couleur du texte ainsi que les subitems chacun avec sa propre couleur.
couleur1 = &H001
couleur1 = &B1
With nomcontrol
for t = 1 to .listitems.count
.ListSubitems(t).text.ForeColor = Couleur1
.ListSubitems(t).subitems(1).ForeColor = Couleur2
Next t
end with