Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Label Multiline..

Label Multiline..

Scheduled Pinned Locked Moved C#
questiontutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    ptr2void
    wrote on last edited by
    #1

    Well this is a very dumb question.. I have a windows form and a label.. Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs.. How to make a label multiline, so that it shows up in the next line in the form??

    X A S 3 Replies Last reply
    0
    • P ptr2void

      Well this is a very dumb question.. I have a windows form and a label.. Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs.. How to make a label multiline, so that it shows up in the next line in the form??

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      set AutoSize to true or use '\r\n' for new line

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can

      1 Reply Last reply
      0
      • P ptr2void

        Well this is a very dumb question.. I have a windows form and a label.. Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs.. How to make a label multiline, so that it shows up in the next line in the form??

        A Offline
        A Offline
        Arjun Marwaha
        wrote on last edited by
        #3

        Hello, You need to make sure that you’ve got new line characters in the string as shown below: this.label1.Text = "Multi-line" + Environment.NewLine + "label"; Regards, Dave

        Dave Traister Software Engineer ComponentOne LLC www.ComponentOne.com

        1 Reply Last reply
        0
        • P ptr2void

          Well this is a very dumb question.. I have a windows form and a label.. Now during the execution of the program, the text that goes into the label is of more length than the form allows, so it hangs.. How to make a label multiline, so that it shows up in the next line in the form??

          S Offline
          S Offline
          SeeSharp 0
          wrote on last edited by
          #4

          Just make the property of textbox as follows. TextMode="MultiLine" Naina :)

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups