SRL Archive - C#/Visual Basic Help and Tutorials

Multiline textbox help


~alex~

2007-07-04 14:54:19

I need to know how to read each single line from a multiline text box, so that it can be written to file correctly. Also I need to know how to count how many lines are in the text box.

Like:


for i = 0 to numberOfLines
streamwriter.writeline(textbox1.lineText)
next

Any help is appreciated.

edit: I've figured out how to get the amount of lines, textbox1.lines.getupperbound(0). Still need help getting the text in the line though.

edit2: Omfg im brilliant. It was textbox1.lines.getvalue(linenumber)