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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. text box multiline

text box multiline

Scheduled Pinned Locked Moved C#
helpquestion
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.
  • V Offline
    V Offline
    Vivek Vijayan
    wrote on last edited by
    #1

    how do i insert a new line character. i want to display a sentence in next line. i selected the multiline property. i want to display the second line in next line of text box like wise \n in C lang can any one help pls

    This code was posted by me...

    A L D 3 Replies Last reply
    0
    • V Vivek Vijayan

      how do i insert a new line character. i want to display a sentence in next line. i selected the multiline property. i want to display the second line in next line of text box like wise \n in C lang can any one help pls

      This code was posted by me...

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      "\r\n" is what you need.

      1 Reply Last reply
      0
      • V Vivek Vijayan

        how do i insert a new line character. i want to display a sentence in next line. i selected the multiline property. i want to display the second line in next line of text box like wise \n in C lang can any one help pls

        This code was posted by me...

        A Offline
        A Offline
        Ashfield
        wrote on last edited by
        #3

        Just add "\r\n" to the end of your line and the next text will be on the next line.

        textbox1.text = string.format("{0}\r\n{1}","this is on line 1","this is on line 2");

        Bob Ashfield Consultants Ltd Proud to be a 2009 Code Project MVP

        1 Reply Last reply
        0
        • V Vivek Vijayan

          how do i insert a new line character. i want to display a sentence in next line. i selected the multiline property. i want to display the second line in next line of text box like wise \n in C lang can any one help pls

          This code was posted by me...

          D Offline
          D Offline
          dan sh
          wrote on last edited by
          #4

          Environment.NewLine will do that.

          It's not necessary to be so stupid, either, but people manage it. - Christian Graus, 2009 AD

          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