Creating trial version software
-
I have develop one window application in C#.Net. I want to create a trial version for 15 Days. How can I do.
-
I have develop one window application in C#.Net. I want to create a trial version for 15 Days. How can I do.
You can use preprocessors for example you could place this statement before your declare the namespaces: #define TRIAL using System..... ect and in the form load event you could: #if TRIAL if (firstusedate.days < firstusedate.days + 15) { MessageBox.Show("Sorry trial expired"); System.Thread.Sleep(3000); } #endif My answer is pretty vague but you should get the idea, feel free to ask if there is still some problems :)
-
I have develop one window application in C#.Net. I want to create a trial version for 15 Days. How can I do.
First When U installed Your Software you must have to insert the Date any where either in Database or Text File or System Registry. When Person Start The Software Check That and +15 and Current Date Of System When Your Insert Date+15=CurrentDate The Close That Software or any Message trial Period of your Software is Over. Application.Exit(),Application.ExitThread(). Thanku Dinesh
-
You can use preprocessors for example you could place this statement before your declare the namespaces: #define TRIAL using System..... ect and in the form load event you could: #if TRIAL if (firstusedate.days < firstusedate.days + 15) { MessageBox.Show("Sorry trial expired"); System.Thread.Sleep(3000); } #endif My answer is pretty vague but you should get the idea, feel free to ask if there is still some problems :)
I don't think anyone is going to get the idea because what you propose only does anything at compile time. It doesn't protect the app at all.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009... -
I don't think anyone is going to get the idea because what you propose only does anything at compile time. It doesn't protect the app at all.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...I see the app is not being built as a trial, but a dynamic trial based app. ...
-
I have develop one window application in C#.Net. I want to create a trial version for 15 Days. How can I do.
Just store the date of first use during install or first run of your app. Every time your app runs, read this value and check that X days have not elapsed. It can start to get complicated when you want to protect against date tampering, etc. Also take a look at CryptoLicensing - a ready-to-use system for this along with date tamper protection and more.