For the life of me I can't figure out how to save in Visual Studio without hardcoding the paths. I am not sure if I am just over thinking it or what. I would be greatful for ANY help I can get at this point. This is driving me insane.
So here is my problem.. I need to save 5 text boxes to a "Save" button. I then need to load it back into the file with a "Load" button. However, here is the catch. I need to send the program to a friend as well. How can I make it so he can enter his own data into the text boxes, click "Save" then click "Clear", then hit "Load" and have the info pop back up. I am having trouble figuring out how to store the info without a direct path. I have posted the only bit of code I currently have. It is like the flat bottom. Please help!
Thank you!!
Dim objWriter As New IO.StreamWriter("")
objWriter.Close()
Guest UserPosted Dec 8, 2014, 6:24 AM
Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
to get the user's default application data folder. Save your file there, here's an example on how to fill it.