I got the below code from a forum that i don't remember the name of. (I have the worlds worst memory.) It works great for saving and loading information from one text box, but I want it to save and load information of lots of text boxs. How would it need to be changed for it to save and load information from more than 1 text box?
Private Sub command1_Click() Open "C:\WINDOWS\Desktop\testfile.txt" For Input As #1 text1.Text = Input(LOF(1), #1) Close #1 End Sub Private Sub command2_Click() Open "C:\WINDOWS\Desktop\testfile.txt" For Output As #1 Print #1, text1.Text Close #1 End Sub
|