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.
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.