Results 1 to 6 of 6

Thread: Rich Text Box

  1. #1

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    New Zealand
    Posts
    39

    Rich Text Box

    How do i added text in lines to a rich text box.

    EG RichTextBox1.Text = "line one line two"

    I want to have the text "line one" in the first line and "line two" in the second.

  2. #2
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    Insert

    VB Code:
    1. vbCrLf
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  3. #3

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    New Zealand
    Posts
    39
    example please

  4. #4
    Hyperactive Member
    Join Date
    Mar 2002
    Location
    Omaha, NE
    Posts
    270
    Try
    VB Code:
    1. RichTextBox1.Text = "line one" & vbcrlf & "line two"
    Nate

  5. #5
    PowerPoster
    Join Date
    Aug 2000
    Location
    IN SILENCE
    Posts
    6,441

    Well

    That what I meant...
    Remaining quiet down here !!!

    BRAD HAS GIVEN ME THE ULTIMATIVE. I have chosen to stay....

  6. #6

    Thread Starter
    Member
    Join Date
    Apr 2002
    Location
    New Zealand
    Posts
    39
    Nice, thanks for the help

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