save data in program

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • nadi nadi
    New Member
    • Oct 2010
    • 1

    save data in program

    hi.
    I want to know how to save the final result in my program
    fpr example: I have create a program with three textboxes in this way:
    me.textbox1.tex t = me.textbox2.tex t * textbox3.text
    and I want then result in textbox1 to saved when program not work(is off).



    I don't speak wery good english.sorry!!

    help me please!!!
  • Guido Geurs
    Recognized Expert Contributor
    • Oct 2009
    • 767

    #2
    This will save and load Your textbox. (see attachment)
    It will write a "Settings.i ni" file in the folder of the program and load it at startup.
    You can also automaticly save the setting by putting the code of the command in the sub of the Form = "Unload"
    Attached Files

    Comment

    • L Typerado

      #3
      Hello!
      To save data in your program, for a later time try this:
      Go to the Program Properties then go to the 'Settings' tab. Add a setting called 'Data'.
      Now go to your form and add this code:
      TextBox3.Text = My.Settings.Dat a
      My.Settings.Sav e
      This will place the Textbox 3 text into a the setting that you added earlier and it will save it for later on.

      Comment

      Working...