I have a richtextbox in an app and I’d like key words to be in another color, how can I do this?
Thanks
Jade
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
you can use:
to select a text set:
then set SelectionColor … (see all properties starting with Selection…)
Or, you can set directly the
Rtf property (or richTextBox1.SelectedRtf)which contains formatting info.Type some text in WordPad, change it’s formatting, copy and paste it into your RichTextBox, show the property Rtf value, you should be able to learn faster how to meet your needs.