Zerium
❔ Problems with applying multiple styles on text in RichTextBox
i few more questions one is when you say it does not work does that mean the the end text is no longer bold and just underlined and 2 is, is RTBox just the name of the richtextbox or are you using some sort of gui add on for winforms
10 replies
❔ Problems with applying multiple styles on text in RichTextBox
Here you go
RTBox.Select(5,18);
RTBox.SelectionFont = new Font(RTBox.SelectionFont, RTBox.SelectionFont.Style | FontStyle.Bold);
RTBox.Select(7, 18);
RTBox.SelectionFont = new Font(RTBox.SelectionFont, RTBox.SelectionFont.Style | FontStyle.Underline);
10 replies