Results 1 to 5 of 5

Thread: Carriage return in a Textbox

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Toronto, Canada
    Posts
    44

    Post

    I want to send a string with a carriage return to a multiline textbox. Example,

    Text1.Text = "Hello World" + chr$(13) + "Bye"

    The carriage return shows an odd character instead of returning to a new line.

    Any suggestions


  2. #2
    Lively Member
    Join Date
    Mar 2000
    Posts
    82

    Post

    try this
    Text1.Text = "Hello World" & vbCrLf & "Bye"


  3. #3
    Frenzied Member
    Join Date
    Jan 2000
    Location
    Bellevue, WA, USA
    Posts
    1,357

    Post Or try this

    Code:
    Text1.Text = "Hello World" & vbNewLine & "Bye"

  4. #4
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845

    Post

    set the textbox to Multiline as well

  5. #5

    Thread Starter
    Member
    Join Date
    Feb 2000
    Location
    Toronto, Canada
    Posts
    44

    Post

    Thanks for your 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