Results 1 to 4 of 4

Thread: How do I put a carriage return in a label or text box???

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2001
    Posts
    6

    Talking How do I put a carriage return in a label or text box???

    Another simple question for this game I'm making, with a (hopefully) simple answer....

    How do I force a text box or label control to move to the next line? One thing that comes to mind is changing the cursor insertion point, but if there's no text on the next line, then it can't move there, can it? And anyhow, there will be different amounts of text in each line.

    Thanks, The_Magic_Guy
    Life is good. Play chess.

  2. #2
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    text1.text= line1 & vbcrlf & line2



    I think there is also a word wrap property you cas set to true.

  3. #3
    The Devil crptcblade's Avatar
    Join Date
    Aug 2000
    Location
    Quetzalshacatenango
    Posts
    9,091
    Originally posted by Muddy
    text1.text= line1 & vbcrlf & line2



    I think there is also a word wrap property you cas set to true.
    in a regular textbox, if you want the text to wrap, set the ScrollBars property to Vertical. and make sure the MultiLine property is set to True

    In a Label, make sure the AutoSize Property is set to False, and the Caption should wrap automatically

    Laugh, and the world laughs with you. Cry, and you just water down your vodka.


    Take credit, not responsibility

  4. #4
    PowerPoster
    Join Date
    Feb 2001
    Location
    Crossroads
    Posts
    3,046
    Originally posted by crptcblade


    in a regular textbox, if you want the text to wrap, set the ScrollBars property to Vertical. and make sure the MultiLine property is set to True

    In a Label, make sure the AutoSize Property is set to False, and the Caption should wrap automatically

    I think the multiline property by itself will do the trick wont it?

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