How to save the default value of a textbox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Pabicoch
    New Member
    • Feb 2010
    • 4

    #1

    How to save the default value of a textbox

    I have a textbox which the user can change the value of. This textbox is used in some of the calculations.

    How do i save the value of a textbox so that the next time the form opens the text box holds that value.

    For example the textbox default is 1.5. The user changes it to 5 and then closes the form. The next time the user opens the form the textbox default is now 5 not 1.5

    I dont have a data source or anything. I'd like to keep it as simple as possible

    Any help would be appreciated Im new at this
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    Let's see...

    Don't close the form, just .Hide() it...

    Put the value in the Application.Set tings...

    Put the variable in the Program.CS file (public) and reference it from there....

    Save the value in the Windows Registry...

    Comment

    Working...