Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. RichTextBox formatting

RichTextBox formatting

Scheduled Pinned Locked Moved C#
tutorial
5 Posts 3 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    GuyThiebaut
    wrote on last edited by
    #1

    Can anyone give me some pointers/links to formatting text in a RichTextBox please. I have googled and not found any tutorials - only references to things such as: txtTips.Rtf = @"{\rtf1\ansi This is in \b bold\b0.}"; Which I can use but I would like to know how to underline, italicise, change font size etc... I realise there is a good chance that I have been missing the obvious, either in my google searches or msdn searches so thank you for your patience in advance. Regards Guy Thiebaut

    You always pass failure on the way to success.
    H K 2 Replies Last reply
    0
    • G GuyThiebaut

      Can anyone give me some pointers/links to formatting text in a RichTextBox please. I have googled and not found any tutorials - only references to things such as: txtTips.Rtf = @"{\rtf1\ansi This is in \b bold\b0.}"; Which I can use but I would like to know how to underline, italicise, change font size etc... I realise there is a good chance that I have been missing the obvious, either in my google searches or msdn searches so thank you for your patience in advance. Regards Guy Thiebaut

      You always pass failure on the way to success.
      H Offline
      H Offline
      Het2109
      wrote on last edited by
      #2

      Check the below link it might help. http://msdn2.microsoft.com/en-us/system.windows.forms.richtextbox.selectionfont.aspx[^]

      Het Waghela :)Be Humble in Victory and Strong in Defeat.:) Het Waghela, Blog|Het Waghela DotNet Questions Link|More Links

      G 1 Reply Last reply
      0
      • G GuyThiebaut

        Can anyone give me some pointers/links to formatting text in a RichTextBox please. I have googled and not found any tutorials - only references to things such as: txtTips.Rtf = @"{\rtf1\ansi This is in \b bold\b0.}"; Which I can use but I would like to know how to underline, italicise, change font size etc... I realise there is a good chance that I have been missing the obvious, either in my google searches or msdn searches so thank you for your patience in advance. Regards Guy Thiebaut

        You always pass failure on the way to success.
        K Offline
        K Offline
        KaptinKrunch
        wrote on last edited by
        #3

        As it would happen, CP has its very own article on formatting text in a richtextbox. http://www.codeproject.com/KB/cs/RTFSyntaxColour.aspx[^]

        Just because we can; does not mean we should.

        G 1 Reply Last reply
        0
        • H Het2109

          Check the below link it might help. http://msdn2.microsoft.com/en-us/system.windows.forms.richtextbox.selectionfont.aspx[^]

          Het Waghela :)Be Humble in Victory and Strong in Defeat.:) Het Waghela, Blog|Het Waghela DotNet Questions Link|More Links

          G Offline
          G Offline
          GuyThiebaut
          wrote on last edited by
          #4

          Thanks, That will help. Regards Guy

          You always pass failure on the way to success.
          1 Reply Last reply
          0
          • K KaptinKrunch

            As it would happen, CP has its very own article on formatting text in a richtextbox. http://www.codeproject.com/KB/cs/RTFSyntaxColour.aspx[^]

            Just because we can; does not mean we should.

            G Offline
            G Offline
            GuyThiebaut
            wrote on last edited by
            #5

            Thanks, Guess who did not search within CodeProject :rolleyes: :-O A really useful link within the article is this one Clickety Regards Guy

            You always pass failure on the way to success.
            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups