Click here to Skip to main content
15,851,242 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I can set the richtextbox.rtf to some rtf value ( I want to make a word bold in a richtextbox) ... but how can I append some other rtf line to this richtextbox ?!

The below code which I've found it works fine ... but I can't add one more line to this
plz help me ..


C#
Dim sb = new System.Text.StringBuilder()
   sb.Append("{\rtf1\ansi")
   sb.Append("This number is bold: \b 123\b0 ! Yes, it is...")
   sb.Append("}")
   RichTextBox.Rtf = sb.ToString()
Posted
Updated 21-Jun-16 3:00am

1 solution

You could have a look at these:
Append RTF text in a RichTextBox[^]
append text to rtf[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900