WinForm richtextbox....appending font color changes (newbie-ish)

M

Mr.Baha

Hello,
I have a situation where I am appending text to a multi-line
(rich)textbox in a C# form. Now depending on which event does the
appendtext, i want to distinguish the lines in the textbox by having
them written in different font colors. So my multi-line textbox will
contain lines of various colored text.

I tried setting the textboxe's ForeColor property, but quickly realized
that the fore color will change every line within the textbox, instead
of the individual pen color. I'm now reading up on the Font
constructor, but I don't see any method to change the font color, just
a bunch of style related parameters is what i see.
Does anyone have any suggestions?
Thank you in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top