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 / C++ / MFC
  4. How to print the text in the new line of a multi line edit box .

How to print the text in the new line of a multi line edit box .

Scheduled Pinned Locked Moved C / C++ / MFC
helptutorial
4 Posts 3 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.
  • V Offline
    V Offline
    VCSharp007
    wrote on last edited by
    #1

    Hi, I tried pEdit->SetWindowText("/n"); but a junk character is displayed instead of going to new line . Plz help. thanx in advance

    B 1 Reply Last reply
    0
    • V VCSharp007

      Hi, I tried pEdit->SetWindowText("/n"); but a junk character is displayed instead of going to new line . Plz help. thanx in advance

      B Offline
      B Offline
      bob16972
      wrote on last edited by
      #2

      try "\r\n" also make sure your edit control style is ES_MULTILINE

      V 1 Reply Last reply
      0
      • B bob16972

        try "\r\n" also make sure your edit control style is ES_MULTILINE

        V Offline
        V Offline
        VCSharp007
        wrote on last edited by
        #3

        Yeah. It worked. Thanx once again.

        H 1 Reply Last reply
        0
        • V VCSharp007

          Yeah. It worked. Thanx once again.

          H Offline
          H Offline
          Hamid Taebi
          wrote on last edited by
          #4

          See here[^] maybe it is some helpful to you

          _**


          **_

          WhiteSky


          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