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
  1. Home
  2. General Programming
  3. C#
  4. Need Help With RichTextBox

Need Help With RichTextBox

Scheduled Pinned Locked Moved C#
helpdatabasequestion
4 Posts 2 Posters 0 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.
  • W Offline
    W Offline
    wienzzz
    wrote on last edited by
    #1

    Help! I'm trying to retrieve data from database and put it on richtextbox control. my problem is : the richtextbox control doesn't read the "\r" and "\n" character (13 and 10 in ASCII, return carriage and line feed). so the data was not displayed on different line but go through one line. any information on it? thankz a lot regards ~erwin~

    W 1 Reply Last reply
    0
    • W wienzzz

      Help! I'm trying to retrieve data from database and put it on richtextbox control. my problem is : the richtextbox control doesn't read the "\r" and "\n" character (13 and 10 in ASCII, return carriage and line feed). so the data was not displayed on different line but go through one line. any information on it? thankz a lot regards ~erwin~

      W Offline
      W Offline
      wienzzz
      wrote on last edited by
      #2

      more information, I try to display it in RTF Format. I think RTF Format doesn't accept "\r" and "\n". Am I correct? anyway to make RTF Format could read "\r" and "\n" character? CMIIW

      Mail me at erwin@holyknight.us

      W 1 Reply Last reply
      0
      • W wienzzz

        more information, I try to display it in RTF Format. I think RTF Format doesn't accept "\r" and "\n". Am I correct? anyway to make RTF Format could read "\r" and "\n" character? CMIIW

        Mail me at erwin@holyknight.us

        W Offline
        W Offline
        wienzzz
        wrote on last edited by
        #3

        ...In fact, a carriage return line feed is never expected to be found in an RTF file...

        Just found that in RTF Specification for Word2007. I just replace the "\r" "\n" with "\line" in RTF and it worked for now.. CMIIW

        Mail me at erwin@holyknight.us

        P 1 Reply Last reply
        0
        • W wienzzz

          ...In fact, a carriage return line feed is never expected to be found in an RTF file...

          Just found that in RTF Specification for Word2007. I just replace the "\r" "\n" with "\line" in RTF and it worked for now.. CMIIW

          Mail me at erwin@holyknight.us

          P Offline
          P Offline
          Pete OHanlon
          wrote on last edited by
          #4

          5 voted for finding the solution yourself, and then remembering to post it for others to see.:-D

          Deja View - the feeling that you've seen this post before.

          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