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. About Edit box

About Edit box

Scheduled Pinned Locked Moved C / C++ / MFC
csharpc++question
6 Posts 4 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.
  • A Offline
    A Offline
    Aqueel
    wrote on last edited by
    #1

    Hi I am working in MFC. I have placed a multiline edit box on my dialog box. what i am doing it is that i write some text in another edit box and append it with the previous data in multiline text box. How can i force the text that is being appeneded to multiline text box in such a way that it is always displayed in new line. I tried this thing. multilinetextbox = multilinetextbox + "\n"+ texbox; But it does not work. Please tell me some tip to do it. Thank you. We Believe in Excellence www.aqueelmirza.cjb.net

    K V L 3 Replies Last reply
    0
    • A Aqueel

      Hi I am working in MFC. I have placed a multiline edit box on my dialog box. what i am doing it is that i write some text in another edit box and append it with the previous data in multiline text box. How can i force the text that is being appeneded to multiline text box in such a way that it is always displayed in new line. I tried this thing. multilinetextbox = multilinetextbox + "\n"+ texbox; But it does not work. Please tell me some tip to do it. Thank you. We Believe in Excellence www.aqueelmirza.cjb.net

      K Offline
      K Offline
      khan
      wrote on last edited by
      #2

      You should also have added a '\r' to it like: "\r\n". this is this.

      A 1 Reply Last reply
      0
      • A Aqueel

        Hi I am working in MFC. I have placed a multiline edit box on my dialog box. what i am doing it is that i write some text in another edit box and append it with the previous data in multiline text box. How can i force the text that is being appeneded to multiline text box in such a way that it is always displayed in new line. I tried this thing. multilinetextbox = multilinetextbox + "\n"+ texbox; But it does not work. Please tell me some tip to do it. Thank you. We Believe in Excellence www.aqueelmirza.cjb.net

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

        Try "\r\n" as line separator.

        A 1 Reply Last reply
        0
        • K khan

          You should also have added a '\r' to it like: "\r\n". this is this.

          A Offline
          A Offline
          Aqueel
          wrote on last edited by
          #4

          Assalamolaikum Thank you very much. It works. We Believe in Excellence www.aqueelmirza.cjb.net

          1 Reply Last reply
          0
          • V Viorel

            Try "\r\n" as line separator.

            A Offline
            A Offline
            Aqueel
            wrote on last edited by
            #5

            Thank you very much. It works. We Believe in Excellence www.aqueelmirza.cjb.net

            1 Reply Last reply
            0
            • A Aqueel

              Hi I am working in MFC. I have placed a multiline edit box on my dialog box. what i am doing it is that i write some text in another edit box and append it with the previous data in multiline text box. How can i force the text that is being appeneded to multiline text box in such a way that it is always displayed in new line. I tried this thing. multilinetextbox = multilinetextbox + "\n"+ texbox; But it does not work. Please tell me some tip to do it. Thank you. We Believe in Excellence www.aqueelmirza.cjb.net

              L Offline
              L Offline
              Laxman Auti
              wrote on last edited by
              #6

              wrote:

              multilinetextbox = multilinetextbox + "\n"+ texbox;

              Use multilinetextbox = multilinetextbox + CString("\n"+texbox); which may reduce one extra call to CString constructer or + Operator:) Knock out 't' from can't, You can if you think you can :cool:

              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