How do you set a textBox.text value on exit?

I would like to make the user defined textbox value saved as the value of the textbox for the next time the form is opened

Is there another way to do this?