How to save text from a multiline textbox??

gsxawd99

Member
Joined
Sep 10, 2005
Messages
8
Programming Experience
Beginner
Here's my problem, it's pretty simple so I feel dumb asking but here goes,..In my app i have a multiline texbox where the user may add additional comments and my problem is I can't figure out how to save those comments from the entire textbox (I'm saving variables to a sequential text file) . I tried saving to a string and it only saved the 1st line of text, so I tried saving the text value of the texbox itself and it did the same thing.. How do I save all the lines of the text box no matter whether there's 1 line or 20 lines of text???
 
could you take a screenshot of your program when it's running

i would like to see how these "comments" are actually displayed with the text

if they're simply typed in, in the same textbox, and the comments can be saved in the same file as the rest of it then when you save the text simply use the streamwriter's Write(textbox.text) method
by doing it that way whatever's in the textbox gets saved
 
Back
Top