Thread: Multi-line

    #1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0

    Multi-line


    How do I do multi-line without using & vbCrLF & or anything like it, my lines are over 1020 characters!
  2. #2
  3. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0
    *bump*
  4. #3
  5. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Multiline what??? label, edit box?
  6. #4
  7. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2003
    Posts
    10
    Rep Power
    0
    text box
  8. #5
  9. Banned ;)
    Devshed Supreme Being (6500+ posts)

    Join Date
    Nov 2001
    Location
    Woodland Hills, Los Angeles County, California, USA
    Posts
    9,648
    Rep Power
    4248
    Set the Multiline property of the TextBox to True. It wraps lines for me just fine.
    Code:
        Dim x As String
    
        ' Construct a long string to add to the text box
        x = ""
        For i = 1 To 200
            x = x & "foo "
        Next i
    
        ' Assign text to the box
        Text1.Text = x

IMN logo majestic logo threadwatch logo seochat tools logo