Retain values
-
Hi! What is the best way to retain a value between sessions. For example, if you have a login dialog and the user account name is likely to be the same the next time the application starts, what is the preferred way to fill the textbox with user account name from the previous time? Thank you :)
-
Hi! What is the best way to retain a value between sessions. For example, if you have a login dialog and the user account name is likely to be the same the next time the application starts, what is the preferred way to fill the textbox with user account name from the previous time? Thank you :)
You can either store it in the Registry, probably under the CurrentUser key, or in a file somewhere. But, keep in mind, this is considered a mild security risk. You might also want to include an option to turn this feature on/off. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome