Delete from multiline textbox

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ryanbreakspear@gmail.com

    Delete from multiline textbox

    Hi all,

    Is there an easy way to delete the first line from a multi line text
    box? I've tried assigning the .Lines to various containers but can't
    seem to find an easy way to get the data back. I don't want to iterate
    through them.

    There must be an easy way!

    Thanks in advance

    Ryan

  • Yunus Emre ALPÖZEN [MCAD.NET]

    #2
    Re: Delete from multiline textbox

    MultiLine textbox value is a string. You can use split method to split your
    text into sentences by using end of line character '\n' and /or '\r'


    --

    Thanks,
    Yunus Emre ALPÖZEN
    BSc, MCAD.NET

    <ryanbreakspear @gmail.com> wrote in message
    news:1115387548 .736846.38840@z 14g2000cwz.goog legroups.com...[color=blue]
    > Hi all,
    >
    > Is there an easy way to delete the first line from a multi line text
    > box? I've tried assigning the .Lines to various containers but can't
    > seem to find an easy way to get the data back. I don't want to iterate
    > through them.
    >
    > There must be an easy way!
    >
    > Thanks in advance
    >
    > Ryan
    >[/color]


    Comment

    • ryanbreakspear@norubbishgmail.com

      #3
      Re: Delete from multiline textbox

      I know, I was looking for an easy way to delete the first line. It's a
      shame the Lines property of a text box is a string array, it would be
      better if it was one of the nice contains like a StringCollectio n.

      I've used a list box now instead it's easier to add/remove specific
      lines.

      Thanks anyway

      Ryan

      Comment

      Working...