1
Reply

How can I Change color of text?

allan petersen 0

allan petersen 0

Aug 6 2005 10:13 AM
2k
Hi! I'm a newbie, and i've tried to look at msdn.microsoft.com but I can't find out how to change the ForeColor of a specifik piece text (string) ex: Loading Program....... OK ( then I want to turn the "OK" Green!! ) I've tried something like this: public string ColorChange1() { string color; logview.Text = testcase.TestResult.Ok.ToString(); logview.ForeColor = Color.Green; color = logview.Text.ToString(); return color; } But All it does is turn the hole listview(logview) text green. I'm in the dark here.... Hope one of you kind souls out there could point me in the right direction.. Allan Petersen (Denmark)

Answers (1)