I am here to ask how to save a setting in the program rather in a file?

For example, I add a value, say "10" in a blank textbox, is it posible to save the value "10" in the program so that next time when started the program again, the textbox is contain value "10" and not blank? Anyone can help?