How to terminate software after a certain time?

Asked

Viewed 67 times

0

Guys, to be specific I need my system to be inaccessible, after reaching the time determined by me, however this time can not be through the date, I need every time that the software is initialized the system counts 1, and when it reaches for example 30(that would be the number of times it has been initialized) the system is terminated.
In this system I can not take data from the internet, nor use database.

  • It is a windows Forms project?

  • Yes, I am using visual studio 2008, because the system will run on an old device that uses Windows Mobile 6.1

  • There is no security that your user will not simply enter the txt file and change the number, but if you are not worrying about it now, the programs made in windows Forms have a configuration file next to the executable, called {do_name exe}.exe.config. It saves the settings you set. Vc can persist settings in it using Properties.Settings.Default["utilizacoes"] = 1;, and go making the logic as you prefer.

  • ideal think would be to count by date by the logic that was proposed if the user open and close the system on the same day as "30 times" the system will be terminated would that be? would be looking for something like trial version limitation?

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.