colorare celle della lista

ciao a tutti , ho un problema da diversi mesi , ho una lista con 2 colonne nella prima il nome , nella secoda il valore, vorrei colorare la seconda colonna in base al valore in un certo range , ad esempio coorare in rosso tutti i valori comorei da 80 a 100, in verde <80 a 50 ed in bianco quelli inferiori di 50 -

sto impazzendo

come fare ??

hallo Luigi
hier meine Farbsteuerung

Function CellBackgroundPaint(g As Graphics, row As Integer, column As Integer) Handles CellBackgroundPaint as Boolean
wert as integer = Val(listbox1.cell(row,column))
if wert >25 then g.ForeColor = color.green
else
if wert >15 then g.ForeColor = color.blue
else
if wert >5 then g.ForeColor = color.yellow
else
g.ForeColor = color.yellow
end if
end if
End if
g.fillrect(0,0,35,30)

End Function

Luigi, la soluzione proposta da Rudolf corretta, ma se vuoi riempire lo sfondo.
Se vuoi colorare solo il testo l’evento da usare CellTextPaint, non CellBackgroundPaint, e non necessario il g.fillRect

In pratica imposti le regole per definire il colore da usare, lo imposti su g.ForeColor e hai fatto.