Understanding RTF and edit it with vb.net
        Posted  
        
            by Jacob Kofoed
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Jacob Kofoed
        
        
        
        Published on 2010-03-15T23:30:19Z
        Indexed on 
            2010/03/16
            0:39 UTC
        
        
        Read the original article
        Hit count: 1176
        
I have this RichTextbox in my vb.net form and I would like to when a user click a button, for example to embold the selected text, how would I do this.
Also, I do NOT want to use the standard vb.net expressions such as RichTextBox1.SelectedText.Font.Bold = true. I want to do something like RichTextbox1.SelectedRTF="[bold]" & RichTextBox1.SelectedRTF & "[/bold]" or whatever RTF looks like.
Can I just add the RTF options random places or can a RichTextBox return an error if the text is in wrong format. I'm mostly looking for info on how to work with RTF without using the standard vb expressions. Thank you very much for any help provided
© Stack Overflow or respective owner