[RESOLVED] RichTextBox clears formatting when changing font
Anyone else seen this behavior. I have a richtextbox with multiple colored text in it. When I change the font, the color table is removed and everything changes to the default fore color. Anyone know of a why to preserve the color table and formatting when changing the font? I know I could build the RTF manually, but I really want to avoid that if possible.
Re: RichTextBox clears formatting when changing font
If you have three sections of text, all different colours, and you want to set the font for all three sections then you have to set it for each section individually. You'll have to do some calculations to see where the boundaries are between sections with different properties. It's a pain but that's how the RTB works.
Re: RichTextBox clears formatting when changing font
Thanks, sorry for my delayed response, I finally figured that out. It is a pain, but I got it working.