Quote:
Originally Posted by WebcyteDesign
How do you make a certain part of text in a rich textbox a different font programatically.
please don't mention anything about selectionfont as I've tried those examples and they don't work.
Basically what I'm doing is adding text to a rtb programatically and the last line always has to be in a certain font. If you have any suggestions let me know. And please feel free to tell me how retarded I am for not being able to figure this out.
|
Haven't worked with a richtextbox in a while, but I'm pretty sure it's the selection font property. Possibly why it's not working for you is, if you're adding text by saying rtf.Text = rtf.Text + moreText that strips the formatting. ( I've run into that problem myself... )
Build a test project, just a form with an rtf box, put some text in it, and try the selection font and color properties.
|