Results 1 to 4 of 4

Thread: Simple Question (I Think :)

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 1999
    Posts
    77

    Question

    I need a RichTextBox to equal a value which is multi-line.
    I've tried:

    RichTestBox1.text = "1st Line" + Chr(13) + Chr(13) + "2nd Line"

    Didn't work :(

    Any help is apperciated <:)

    -Aquatic Elf

    http://my.uo.com/cgi-bin/my_chars.pl...9062b9c622f478
    7ab37413c9ac2fe65a5c442fa0a2fd96d3a29
    7455b7aa65ad8b75e4cc86
    (*Note: Use Your Own MyUo Pass*)

  2. #2
    Fanatic Member ExcalibursZone's Avatar
    Join Date
    Feb 2000
    Location
    Western NY State
    Posts
    908
    RechTextBox1.Text = "1st Line" & vbCRLF & "2nd Line"
    -Excalibur

  3. #3
    Frenzied Member Vlatko's Avatar
    Join Date
    Aug 2000
    Location
    Skopje, Macedonia
    Posts
    1,409
    Yes when you want to go to a new line you must use
    Code:
    vbCrLf 'or
    newline$ = Chr(13) + Chr(10)' carriage return and linefeed
    I am become death, the destroyer of worlds.
    mail:[email protected]

    • Visual Basic 6.0 & .NET
    • Visual C++ 6.0 & .NET
    • ASP
    • LISP
    • PROLOG
    • C
    • Pascal

  4. #4
    Guest
    Or use vbNewLine
    Code:
    rtf1 = "line1" & vbNewLine & "line2"

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