-
Is it possible to save the text in a text box so that you can exit the program, then enter back in and have the saved text in the text box?
Ex: I type hello in a text box, can I save it so that I can exit- come back and find hello in the text box?
If so, please tell me how
Thank you for your help.
*What does this save setting mean, and how do I use it?
Please give me an example using default names, and please tell me what each is. ()
For example: what's "Myapp" is that the project name?
or what is the "startup"? What does each one mean??
[Edited by ptcruiser on 12-12-2000 at 08:38 PM]
-
If you want to save a small amount of data, look up the SaveSetting and GetSetting functions which access the computer's registry. Other ways to save data are through databases and text or ini files.
-
You can use the registry to store the textbox value
Code:
Private Sub Form_Unload(Cancel As Integer)
SaveSetting "MyApp", "Startup", "Value", Text1.Text
End Sub
Private Sub Form_Load()
text1.Text = GetSetting("MyApp", "Startup", "Value")
End Sub