Click here to Skip to main content
13,043,092 members (65,618 online)
Rate this:
 
Please Sign up or sign in to vote.
See more:
i want to use my client application for only 15 days.how it is possible any code.
it is possible in c# windows application.
Posted 21-Sep-12 23:06pm
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Yes.
But...

And it's a fairly big "but" - it's never that difficult to get round, if people want to, unless you do an online check. Changing the system date (for example) is pretty easy, and will fool basic systems.

It depends how much you want to protect your code, and how much effort you want to put in (and how much you want to risk annoying potential customers)

Google can help you here (try "demo version c#" - that will give you a large set of useful results), or see here: Application Trial Maker[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Yes u can restrict your application after 15 days to not run.

Just write the following code on main startup form:


DateTime dtAppBuild = System.IO.File.GetLastWriteTime(Application.ExecutablePath);
if (dtAppBuild.AddDays(15) < DateTime.Now) Application.Exit();
  Permalink  
Comments
16041984 22-Sep-12 5:40am
   
on which event of form i use this code?? on form load or where
Dineshshp 22-Sep-12 5:52am
   
on "Form_Load"
16041984 22-Sep-12 5:47am
   
thx dear i am add this code on form load..and change the date of system after 15 days and it works application exit.thx yaar.god bless u
Dineshshp 22-Sep-12 5:53am
   
i m always for u dear. bye...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.170713.1 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100