Click to See Complete Forum and Search --> : Changing part of text color


miriyalasrinu
September 25th, 2001, 08:56 AM
how to Change the part of the text color in the listview Subitems or List Items?

Craig Gemmill
September 26th, 2001, 09:44 AM
I am using the control from Microsoft Windows Common Controls 6.0 (sp4). You can change the color after you place the text in your listview by changing the forecolor property.

'To Change the first column in your listview:
listview1.listitems(rownumber).forecolor = vbred

'To change subitems:
listview1.listitems(rownumber).listsubitems(columnnumber).forecolor = vbyellow

miriyalasrinu
September 28th, 2001, 08:08 AM
Thank u for u'r help.
But i need to change part of the text color.
for example the text of listitem or subitem is "This is one example".
I want to change the color of "example"