Click here to Skip to main content
15,891,184 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I've been trying multiple methods for trying to save information on the application.

Explanation:
The program I'm currently making is a custom game launcher with a profile manager. And on the profile manager is fields for username, and gamertag. I wan't to save the information a user inputs so that if they restart the program it will save their information instead of the information I added as default while making it.

I've seen methods on how to save textboxes to text files, but how would that work for custom textbox fields that link up to labels?

Example:
VB
label1.text = textbox1.text


The information from the textbox is then active on the label. How would I save this information so when I relaunch the application it's still there?
Posted
Comments
Sergey Alexandrovich Kryukov 5-May-13 1:37am    
It does not seem to make any sense.

And please don't post non-answers as "solution". It can give you abuse reports which eventually may lead to cancellation of your CodeProject membership.
Comment on any posts, reply to available comments, or use "Improve question" (above).
Also, keep in mind that members only get notifications on the post sent in reply to there posts.

Your fake answer was removed due to 3 abuse reports on your post, but if you keep this bad habit, people may abuse report your account.

—SA
i964682 5-May-13 8:20am    
hi, just new here. is this comment for me or for CodexHawk?
Sergey Alexandrovich Kryukov 5-May-13 14:18pm    
To CodexHawk. If I wanted to talk to you, I would comment your solution. I guess one of the fake answers I meant was removed automatically due to down-votes.
—SA

create/open file for writing
write information from textbox-1 to file in a new line
write information from textbox-2 to file in a new line
...and so on, until..
write information from textbox-n to file in a new line
save/close file

*re-start application

open file for reading
read 1st line information from file and assign to textbox-1
read 2nd line information from file and assign to textbox-2
...and so on, until...
read nth line information from file and assign to textbox-n
close file

done.
 
Share this answer
 
save the information to a text file then load and assign it to the textbox when the application is launched..
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900