Text Color

  • Thread starter Thread starter Randy
  • Start date Start date
R

Randy

Hello All,
I want to change the color of a string mid way into the string.
Example: Say I have a string "This is a test"
What I want to do is have "test" a different color from the rest of the
string. Is there any way to do this?
Thanks
 
Randy said:
I want to change the color of a string mid way into the string.
Example: Say I have a string "This is a test"
What I want to do is have "test" a different color from the rest of the
string. Is there any way to do this?

That really depends on how you're displaying the string. A string is
just a sequence of characters - it doesn't have a colour or anything
like that. However, if you're displaying the text in a RichTextBox or
something like that, you should be able to change the colour of part of
the string.
 
Back
Top