How do I go about adding several lines of text to the RichTextBox? I can use rtb.text = "Text in a richtextbox" or I can use rtb.appendtext("This text is appended to the original text"). I have been using the Print and Printline statements for plain text files but for a RichTextBox what should I use? Thanks for all of your help.
D
dac9901
@dac9901
Posts
-
How to create a RichTextFile? -
How to create a RichTextFile?Hello Everyone, I am using a RichTextBox to display text and graphics. I know how to load a previously created rtf file(rtb1.LoadFile(FileName, RichTextBoxStreamType.RichText)), but how do I create the rtf file. I using the RichTextBox for read-only purposes. I don't want the user to add or change anything in the RichTextBox. I am not sure how to print and add pictures to a RTF file. If I was creating a text file I would use the "Printline" command. Also, I want to use special formatting like Bold and different font sizes when I create my RTF file. Any Ideas?:confused: