Results 1 to 4 of 4

Thread: text boxes

  1. #1

    Thread Starter
    Member
    Join Date
    Jan 2000
    Location
    Launceston, Tasmania, Australia
    Posts
    44

    Post

    if you have a multi line text box how to you get it to write to the next line in that text box in code?

    ------------------
    Mooose

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Try this:
    Text1.Text = "Line 1" & VbCrLf & "Line 2"
    HTH

    ------------------
    Visual Basic Programmer
    ------------------
    PolComSoft
    You will hear a lot about it.



    [This message has been edited by QWERTY (edited 02-07-2000).]

  3. #3
    Addicted Member
    Join Date
    Feb 2000
    Location
    London, UK
    Posts
    145

    Post

    Or maybe

    Text1.Text = "Line 1" & Chr(13) & "Line 2"

    ------------------
    Wilhelm Tunemyr,
    Sweden

    [email protected]

    "Dort, wo man Bücher verbrennt, verbrennt man am Ende auch Menschen"
    Heinrich Heine (1797-1856)

    Pravda zvítezi!

  4. #4
    Conquistador
    Join Date
    Dec 1999
    Location
    Australia
    Posts
    4,527

    Post

    or even:
    Code:
    txt1.text = "Line 1" & chr$(10) & "Line 2"
    i think...


    ------------------
    david
    Teenage Programmer


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