Results 1 to 5 of 5

Thread: Is there a way to force....

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Harlingen, Tx
    Posts
    4

    Arrow

    Im trying to figure out if there is a way to force text onto the 2nd line of a label or not.

    example:
    on the first line of a label it says something like "First name: blah blah" but there are two names being displayed... Instead of the second name being displayed right after the first one, is there a way to force it to the 2nd line without using spaces?

    Sorry for the stupid questions, I just started learning vb.

    Thanks in advance!
    Vpr

  2. #2
    Fanatic Member Jerry Grant's Avatar
    Join Date
    Jul 2000
    Location
    Dorset, UK
    Posts
    810
    Code:
    Label1.Caption = "Name1" & vbCrLf & "Name2"
    Jerry Grant................tnarG yrreJ
    Website: <JG-Design></.net>
    Email: [email protected]
    Working towards a bug free world......
    (Not a Microsoft employee)

  3. #3
    Hyperactive Member
    Join Date
    Mar 2000
    Location
    Boulder, Colorado, USA
    Posts
    325
    use a vbLf or Chr$(10) where you want the line break to be.... and make use WordWrap and AutoSize are true.
    -Shickadance

  4. #4
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    either use & VBCRLF & or & VBNEWLINE & hust before where you want the next line to start !

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

  5. #5

    Thread Starter
    New Member
    Join Date
    Feb 2001
    Location
    Harlingen, Tx
    Posts
    4

    Cool thanks...

    Thanks, I knew there must have been a command to do that, just didn't know what it was..

    *bows deep*
    Vpr

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