well I did came across this but I just don't get it. so was hopeing someone can give me a simple example of it...
Well, to break it down simply for your situation you need to follow these steps:
1. Create the setting in the project and give it a meaningful name eg. TextBoxContents
2. Next you will need to add the code to run on the TextChanged event of the TextBox1. This code is just as you have in the original post. However, as I am a performance junkie I would suggest moving the save method to the textbox's Leave or LostFocus event. This will prevent the application saving the contents on each keystroke
'Save the contents of the textbox each time focus is lost
My.Settings.TextBoxSave = TextBox1.Text
'Commit the changes
3. To the load the contents of the text box next time the form loads you will then need to add code to the Form's Load event. Loading the text is simply a case of reversing the code above. Specifically:
'Read the contents of my.settings.TextBoxSave
TextBox1.Text = My.Settings.TextBoxSave
I hope this helps mate. Also, remember to use the search box in the top right... There are plenty of topics about this already.