Results 1 to 4 of 4

Thread: Mulitple Lines In a label [Resolved]

  1. #1

    Thread Starter
    Addicted Member jordan23's Avatar
    Join Date
    Dec 2002
    Posts
    166

    Mulitple Lines In a label [Resolved]

    How to I get multiple line in a label in C#? Thanks.
    Last edited by jordan23; Jul 9th, 2004 at 06:21 AM.

  2. #2
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    Like this :
    PHP Code:
    this.label2.Text='\n' "1st Line" '\n' "2nd Line"

  3. #3
    Sleep mode
    Join Date
    Aug 2002
    Location
    RUH
    Posts
    8,083
    '\n' is equivalent to Environment.NewLine which presents begining of new line.

  4. #4
    Junior Member
    Join Date
    May 2004
    Posts
    24
    You have other escape caracters if you want like \t ( a tab) its just like old C.

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