Implementing a 30 days time trial.

Peter Kiers
Peter Kiers used Ask the Experts™
on
Hi,

I am using VS2010 and I programm in c#.

My application is almost finished and I want to protect it with a 30 days time trail.

I made a little example with just a menuStrip and one menu-item called
"Product Registration". When the user clicks on this item another form called
RegForm appears, where the user can enter a valid serial-number into
a textbox called textBox1 that's on the RegForm. When the user clicks on the
close-button then the validation of the serial-number has to begin.

This is al I got:

namespace WindowsFormsApplication1
{
    public partial class Form1 : Form
    {
        RegForm frmRegister = new RegForm();

        public Form1()
        {
            InitializeComponent();
        }

        private void registerProductToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (frmRegister.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                //
            }
        }

Open in new window


Who knows the answer and is willing to help me?

Greetings,

Peter Kiers
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Peter KiersOperator

Author

Commented:
Thanks Dhaest.

Peter
Meir RivkinFull stack Software Engineer

Commented:
for a simple time based trial solution i'd suggest writing to registry when the date time when initially you app is installed on the machine.
upon every run it checked current date time against the value in the registry.
obviously you can encrypt the date time value in the registry to get more security.
if you want the maximum then you should use tools such as NET Reactor or Dotfuscator:

http://www.preemptive.com/products/dotfuscator/overview
http://www.eziriz.com/dotnet_reactor.htm

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial