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?

Recommended Answers

What is the color of the actual font?

Jump to Post

All 3 Replies

What is the color of the actual font?

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.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.