I need to know how can I make trial(demo) version of my program. Normally people use date & time to do it. But if user will change his system date I guess it will not work. I need to know the best way of making trial version which will work only 7 or 15 or 30 days. Is it possible to make something like that it(program) will kill all files after passing 30 days? Please help me.


You can do it also with times used, look here for an example.

I recently made a program that had a demo version that lasted for 25 uses. In the application events, at startup increment an integer.

dim uses as integer

startup events
uses +=1

if uses < 25 then
start app
end if

store an integer (number of times opened) somewhere, for example in the registry and at every program startup check if that stored value is less than the total number of times the program is allowed to run. if the value is less, then increment it and run the program, or else inform the user that the trial is over, and exit.


if you want your program to run for a limited amount of time (15 days for example) then you could check the correct time from a time server using the internet, and store the first date and time the program was run, and then each time the program is made to run check the current date and time to see if the limit is not reached.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.