spxChrome 0 Newbie Poster

Hi,

Trying to retreive the background color of a row in a listview but not having much luck.

I have tried

if lsv.Items(i).BackColor = Color.White then
if lsv.Items(i).BackColor.ToString = "Color[window]"  then
if lsv.Items(i).BackColor.ToString = Name=White,ARGB=(255,255,255,255)} then

I do this because on load I set the background color depending on a some values such as lsv.Items(i).BackColor = ColorTranslator.FromHtml("#FFDEDE") or lsv.Items(i).BackColor = Color.Yellow But upon click I need to check the background color to let me know what I need to do when the user selects an item out of the list view so I try:

if lsv.Items(i).BackColor = Color.Yellow then
'do this
end if

But I am unable to match up because it doesn't correctly retrieve the background color in a way I can compare it to Color.Yellow

Thanks