Question:
How do you save text from more than one text box to my computer in Visual Basic?
Mike
2010-06-01 12:45:16 UTC
On the GUI I have created. I need to know how do you save text from more than one text boxes to my computer to a single file, and be able to open that file so that text appears in the boxes it was original inter into.

I have already created a save button that saves text from all the text boxes. I also created an open button that opens it. But the problem is, when I open the folder all the text appears in one box.


Descriptive visual:

There are three text boxes alongside each other that are grouped with a "group box".Each one is tittle:

"Buddy Questions" "Ways to Respond" "Buddy Response"

There are also 4 different tabs that takes me to 3 more text boxes with the same "Buddy Questions, Ways to Respond, Buddy Response" tittle for similar inputs.

I am creating conversation files that I need to be able to save and open the files as they appear in the different text boxes. Please Help! You don't know how much this will mean to me.

Also, I am very new to Visual Basic so please be descriptive as possible. If you give me a coding I mush know where to input it.

Thank you so much!
Three answers:
KyleUndefined
2010-06-01 13:12:19 UTC
If you're going to stick with text files, I would suggest saving a text file for each box. Make the form make three folders along the lines of Tab1, Tab2, Tab3. Then in each appropriate folder, have the text files saved as to what they are pertaining to. Like BuddyQuestions.txt, BuddyResponse.txt, etc. Then when you go to load the text files, just loop through the folders and spit out what the files contain to the appropriate boxes.



I would however, learn to read/write/parse XML files. You would be able to do all of what I just described with one file. If you'd like help with this, send me an email. kyle.undefined@gmail.com
2010-06-01 12:51:59 UTC
all i can say is to copy and paste to make one file..but as for the text to go back into those boxes when you open it..im stuck
?
2016-12-05 00:09:29 UTC
Make it a source. even in spite of the reality that, you will not have the flexibility to call the "checklist" (now a source) utilising a checklist call, you're able to desire to be waiting to benefit the contents at as rapidly as out of your application. If the "source" could desire to get replaced, it can be a putting extremely, or in basic terms bypass decrease back to the implementation of the checklist and create the checklist defaults out of your application.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...