Line brake in ReadOnlyBox?

This is a discussion on Line brake in ReadOnlyBox? within the C++ Programming forums, part of the General Programming Boards category; Hi I wonder how I do a linebrake/enter in a readbox My problem is that when i paste this: line1\nline2 ...

  1. #1
    Registered User
    Join Date
    Sep 2007
    Posts
    18

    Question Line brake in ReadOnlyBox?

    Hi
    I wonder how I do a linebrake/enter in a readbox

    My problem is that when i paste this:
    line1\nline2

    It gives me:
    Line1Line2

    How do I get rid of the ->  ?
    I have tried to add “ES_MULTILINE” to the box, but it does not fix the problem

  2. #2
    Registered User
    Join Date
    Jan 2005
    Posts
    7,344
    Did you try "line1\r\nline2"?

  3. #3
    Registered User
    Join Date
    Sep 2007
    Posts
    18
    Ha, thx

    I have tried \r and \n but not together Thx anyway!
    Last edited by Dampy; 09-07-2007 at 02:45 PM. Reason: Spelling

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. How to do encryption in C
    By sankarv in forum C Programming
    Replies: 33
    Last Post: 12-28-2010, 11:01 AM
  2. Pointer and Polymorphism help.
    By Skyy in forum C++ Programming
    Replies: 29
    Last Post: 12-18-2008, 09:17 PM
  3. Printing Length of Input and the Limited Input
    By dnguyen1022 in forum C Programming
    Replies: 33
    Last Post: 11-29-2008, 04:13 PM
  4. Finding carriage returns (\c) in a line
    By JizJizJiz in forum C++ Programming
    Replies: 37
    Last Post: 07-19-2006, 06:44 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21