Make a paragraph using the Label.

Hey, my first post in this forum, the friend who told me about Visual Basics 2005 Express Edition told me to ask my question here since he couldn't answer it.

Anyways as the Subject says, I'm trying to find out how to put a paragraph in a Label.

In Example...
____________
Hello,            |
How Are You |
-----------------
^(Labels text)^

Anyone here can help me out

Thanks :D!



Answer this question

Make a paragraph using the Label.

  • nidionys

    and don't forget to set the auto size property to true

    Me.Label1.AutoSize = True



  • Maxim Michtchenko

    If you want to set the property right away, you can go to the text property in the properties window and enter the text in paragraph style.

    However, if you want the code to do it, just use the same method as you would a msgbox.

    Label1.Text = "Hello" + Environment.NewLine + "How Are You "

    Enter +Environment.Newline+ to start a new line.

    Hope this helps

    Steve



  • Mohan1

     kidwidahair wrote:

    If you want to set the property right away, you can go to the text property in the properties window and enter the text in paragraph style.

    However, if you want the code to do it, just use the same method as you would a msgbox.

    Label1.Text = "Hello" + Environment.NewLine + "How Are You "

    Enter +Environment.Newline+ to start a new line.

    Hope this helps

    Steve



    Thanks kidwidhair !Now to go finish up my program, but before I do that, DMan1, why do I need to do an AutoSize


  • DaPosh

    Do you want to have the code itself put the paragraph in or do you just want to set the text property of the box

    Steve



  • Luis Esteban Valencia Muñoz

    Thanks for the info, that's nice to know , I finished my game and it helped me review my programming skills and I'd like to say I've gotten alot better ! Thanks for your help, if you guys ever need help with Halo 2 Modding, just visit the website I'm a member at,

    http://www.halopatch.com, anyways thanks for your help and I'll be visiting here again soon !


  • BobH

    Your very welcome. Always glad to help

    Steve



  • PLess

    Autosize will make the label adjust itself to the text within it. It will automatically grow and shrink to the required size to fit the text snuggly.

    Steve



  • Make a paragraph using the Label.