在列表视图中更改所选项目颜色

问题描述:

我想在列表视图中更改所选项目颜色,使用时:



listview1.selecteditem(0).forecolor = color.red



它有效但当我将鼠标悬停在它上面并再次选择它时会变成黑色(listview的标准颜色)



有什么帮助吗?

Hi, I want to change selected item color in listview, when using:

listview1.selecteditem(0).forecolor = color.red

it works but when i hover the mouse on it and select it again it turns to black ( the standard color of listview )

any help please?

使用图片框在lvw图片属性后面绘制
Use picture box to draw behind the lvw picture property


如果选择了写入条件= true,然后在selectedindexchnage事件中使用color.red
write condition if selected = true then color.red in selectedindexchnage event