Hello All.
I'm using the RichTextBox control to show text to user that can do the
primary font formatting: fontname, size, color, bold, italic and underline.
Unlike the RichTextBox used in VB 6, this control in .NET do not apply the
expected formatting when there are multiple selection of different font
formats.
For example, if I select a text that have portions in Bold and other portion
in higher Size, on apply a simple Italic style, every character in the
session will have the same format as the applyed font, losing the Bold, the
Size, etc., and leaving every character only as Italic.
I found lots of articles saying about that issue, and the solution I found
is apply the formatting character by character, until the end of selection.
That is too bad, because I tried that on not-so-large text and takes too
long to complete the formatting. In a long text, that can take forever.
:^P
Any of you guys already discovered any real good code to correctly apply the
formats?
Cesar