0

I’m creating a Windows Form Ap with Visual Studio 2008. The Ap has a few selection boxes and buttons that trigger “things” to happen. The form also has a “feedback” area where I will display progress to the user. OK, that should be vague enough – SMILE.

I want to be able to display the feedback with words that are bold or different color. I tried using a richTextBox, but when I enter code like:

this->richTextBox1->Text = "Initialized";
this->richTextBox1->ForeColor = Color::Red;
this->richTextBox1->Text += " from file";

The entire object turns to red text, not just the words following the ForeColor change.

Is there a tool that will allow this type of formatted text?

3
Contributors
3
Replies
4
Views
5 Years
Discussion Span
Last Post by thines01
0

I want to be able to display the feedback with words that are bold or different color.

Update the Font property of your rich text box.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.