Results 1 to 2 of 2

Thread: multi lines on a text box[resolved]

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member Sneeden's Avatar
    Join Date
    Oct 2001
    Location
    Sneedville
    Posts
    258

    multi lines on a text box[resolved]

    I must be retarded. I need to write progress to a text box. One line after the other. I have the multiline property to true, but I cannot get newline escape char to do anything.

    Code:
    private....()
    {
    	addText("parsing signals");
    	addText("finished parsing signals");
    	//etc...
    }
    
    private void addText(String iText)
    {
    	txtProgress.Text=txtProgress.Text+iText+"...\n";
    }
    Code:
    It outputs to the textbox:
    reading file...finished reading file...parsing signals...finished parsing signals...
    Code:
    Instead of:
    reading file...
    finished reading file...
    parsing signals...
    finished parsing signals...
    However, when I copied and pasted the output into this page, it had the \n chars put in.

    Is there some other property on the text box that I need to set?
    Last edited by Sneeden; Jun 15th, 2005 at 12:04 PM.
    balls deep in bad code

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width