Delete from multiline textbox

  • Thread starter Thread starter ryanbreakspear
  • Start date Start date
R

ryanbreakspear

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
 
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'
 
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 StringCollection.

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

Thanks anyway

Ryan
 
Back
Top