Results 1 to 3 of 3

Thread: outputing text to a richtextbox. (NewLine?)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83

    outputing text to a richtextbox. (NewLine?)

    I need to output to a richtextbox. The problem is that when I use:
    Code:
    rtbMain.text = "First Line"
    rtbMain.text = rtbMain.Text & "Second Line"
    Puts all the text on one line. And:
    Code:
    rtbMain.text = "Line One"
    rtbMain.text = "Line two"
    Overwrites the the first.

    So I need to know how to create a newline to output text to.
    Or atleast simulate the enter key being pressed so I can get to the next line.
    12/32/84 - I need some code to make me a sandwhich.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    VB Code:
    1. rtbMain.text = "First Line"
    2. rtbMain.text &= ControlChars.Newline & "Second Line"
    3.  
    4. 'or
    5. rtbMain.AppendText ("First Line")
    6. rtbMain.AppendText (ControlChars.Newline & "Second Line")

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jan 2002
    Location
    Colorado
    Posts
    83
    Thank you! Thats exactly what I was looking for.
    12/32/84 - I need some code to make me a sandwhich.

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