Results 1 to 3 of 3

Thread: Quick Question

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2000
    Posts
    15

    Wink

    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]

  2. #2

  3. #3
    Lively Member
    Join Date
    Oct 2000
    Location
    New York City
    Posts
    73
    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
    Rich

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width