By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,967 Members | 815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,967 IT Pros & Developers. It's quick & easy.

Text Color

P: n/a
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
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Randy <na*****@hotmail.com> wrote:
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.

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet/
If replying to the group, please do not mail me too
Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.