Hello.
I think you should save the number you want to retain in a variable, and save that variable to disk. (You could even write a small program separate to the label program that saves the initial value. eg. MyVariable = 124. Save MyVariable to C
Then when you run the program, write code at Form.Load to retrieve the value.
Declare the variable in the Declarations section of Form1, if there is only one form, or in a module, if more than one form.
Then write code, so that the last thing before terminating the program, the value is resaved back to disk.
If I can be of more help, Email me at [email protected]
I hope I have been of assistance.
Steven Hicks
Australia
Enter your message below
Sign in or Join us (it's free).