There are endless ways yo accomplish this. The most simplistic would be to store a value in the registry and check it when you start the app and update it when you close it. If you are worried about the user being able to change it, you can store that value in a more difficult to find registry key or make it a calculated value or encrypt it.
Thanks woyler, would you happen to have an example of how to store a value in the registry, check and update that value? a link or online resource would be nice or the code with comments would be great...Thanks again...
Look up SaveSetting and GetSetting in VBHelp
Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first
'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
using SaveSetting and GetSetting (and using the registry at all) is an option, but easily changed, unless you use a setting that only you can interpet, or the string is actually encrypted.
The API functions CryptEncrypt and CryptDecrypt will help you with this. [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.