|
-
September 25th, 2001, 08:56 AM
#1
Changing part of text color
how to Change the part of the text color in the listview Subitems or List Items?
-
September 26th, 2001, 09:44 AM
#2
Re: Changing part of text color
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
Good Luck,
Craig - CRG IT Solutions - Microsoft Gold Partner
-My posts after 08/2015 = .NET 4.x and Visual Studio 2015
-My posts after 11/2011 = .NET 4.x and Visual Studio 2012
-My posts after 02/2010 = .NET 4.0 and Visual Studio 2010
-My posts after 12/2007 = .NET 3.5 and Visual Studio 2008
-My posts after 04/2007 = .NET 3.0 and Visual Studio 2005
-My posts before 04/2007 = .NET 1.1/2.0
*I do not follow all threads, so if you have a secondary question, message me.
-
September 28th, 2001, 08:08 AM
#3
Re: Changing part of text color
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"
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|