C# VB .NET: why the fore/back color setting of ListView SubItem does not work?

Posted by NosaLee in .NET Programming on 29-06-2012. Tags: , , , , , , , , , , ,

Author: Nosa Lee
Original Address: http://www.seeksunslowly.com/c-sharp-vb-net-why-the-foreback-color-setting-of-listview-subitem-does-not-work
To reprint this article, please indicate the source, thank you.
_____________________________________

Today I need to set the foreground color for a S[……]

Read More…

[……]

Read More…

C# VB .NET 中 ListView SubItem 颜色设置无效怎么解决?

Posted by NosaLee in .NET Programming on 29-06-2012. Tags: , , , , , , , , , , ,

作者:牧山道人
原文地址:http://www.seeksunslowly.com/c-sharp-vb-net-中-listview-subitem-颜色设置无效怎么解决
转载请注明出处,谢谢。
_____________________________________

今天需要在 Details View 模式的 ListView 中设置 SubItem 文字前景色,幸运的是 ListViewSubItem 类有 ForeColor 属性,于是直接写下:

lvi.SubItems(2).ForeColor = Color.Red ‘ 其中 lvi 为 一个 ListVie[……]

Read More…