mattdaddyjuice
Member
- Joined
- Jan 15, 2009
- Messages
- 21
- Programming Experience
- 5-10
I have a multiline textbox from which I would like to read each individual line and store it in an array. I don't want to store each carriage return, I want the line itself.
I have been using this, but it only records lines followed by carriage returns.
Dim arra() = txtReceipt.Text.Split(Environment.NewLine)
Here is a visual example:
http://www.java2s.com/Tutorial/CSharpImages/TextBoxMultiline.PNG
From that top right textbox, I would want arra(0) to be "Type some stuff here (and hit the return and" and arra(1) to be "tab keys...)"
Is there a way to accomplish this?
I have been using this, but it only records lines followed by carriage returns.
Dim arra() = txtReceipt.Text.Split(Environment.NewLine)
Here is a visual example:
http://www.java2s.com/Tutorial/CSharpImages/TextBoxMultiline.PNG
From that top right textbox, I would want arra(0) to be "Type some stuff here (and hit the return and" and arra(1) to be "tab keys...)"
Is there a way to accomplish this?