winforms - C# win. form - How to maintain date/time for trial -


i creating trial version of application.

the trial should run maximum of 3 days.

recently came understand isn't simple. tried use system date count 3 days user changes current date past day increases trial period. so, can suggest how maintain 3 days trial?

software development platform : visual studio 2008

language : c# (windows form)

you may try :

save start date. if start date higher current time -> exit

or may switch : count minutes program running. on 600 ->exit (or 800 or 900)

or may time internet, not local :

http://www.timeapi.org/utc/now


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -