How to put text into different line in textBox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Fang

    How to put text into different line in textBox

    I try to use "\n" as line feed to put text into different
    lines in textBox of Visual Studio .Net, but it does not
    work. The text is still in one line. Does anybody know
    how to put text into different lines in textBox? Any help
    will be appreciated.

    Thanks in advance,

    Fang

    By the way, I already set AcceptsReturn to true.
  • Horatiu Ripa

    #2
    Re: How to put text into different line in textBox

    \r\n

    --
    Horatiu Ripa
    "Fang" <fas296@aol.com > wrote in message
    news:06c501c3b2 6d$fa4c2720$a10 1280a@phx.gbl.. .[color=blue]
    > I try to use "\n" as line feed to put text into different
    > lines in textBox of Visual Studio .Net, but it does not
    > work. The text is still in one line. Does anybody know
    > how to put text into different lines in textBox? Any help
    > will be appreciated.
    >
    > Thanks in advance,
    >
    > Fang
    >
    > By the way, I already set AcceptsReturn to true.[/color]


    Comment

    • Morten Wennevik

      #3
      Re: How to put text into different line in textBox

      You need to set Multiline = true; or else it will force everything on one
      line

      --
      Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

      Comment

      • Fang

        #4
        Re: How to put text into different line in textBox

        Thanks!
        [color=blue]
        >-----Original Message-----
        >\r\n
        >
        >--
        >Horatiu Ripa
        >"Fang" <fas296@aol.com > wrote in message
        >news:06c501c3b 26d$fa4c2720$a1 01280a@phx.gbl. ..[color=green]
        >> I try to use "\n" as line feed to put text into[/color][/color]
        different[color=blue][color=green]
        >> lines in textBox of Visual Studio .Net, but it does not
        >> work. The text is still in one line. Does anybody know
        >> how to put text into different lines in textBox? Any[/color][/color]
        help[color=blue][color=green]
        >> will be appreciated.
        >>
        >> Thanks in advance,
        >>
        >> Fang
        >>
        >> By the way, I already set AcceptsReturn to true.[/color]
        >
        >
        >.
        >[/color]

        Comment

        • Fang

          #5
          Re: How to put text into different line in textBox

          Thanks, but I alread set Multiline = true.
          [color=blue]
          >-----Original Message-----
          >You need to set Multiline = true; or else it will force[/color]
          everything on one[color=blue]
          >line
          >
          >--
          >Using M2, Opera's revolutionary e-mail client:[/color]
          http://www.opera.com/m2/[color=blue]
          >.
          >[/color]

          Comment

          Working...