Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#3.5
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 at 22-Sep-12 5:40am
   
on which event of form i use this code?? on form load or where
Dineshshp at 22-Sep-12 5:52am
   
on "Form_Load"
16041984 at 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 at 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
0 Sergey Alexandrovich Kryukov 359
1 Richard MacCutchan 310
2 OriginalGriff 290
3 Sharmanuj 146
4 Jared Sanow 145
0 Sergey Alexandrovich Kryukov 5,969
1 OriginalGriff 5,005
2 CPallini 2,473
3 Richard MacCutchan 1,547
4 Abhinav S 1,507


Advertise | Privacy | Mobile
Web03 | 2.8.140814.1 | Last Updated 22 Sep 2012
Copyright © CodeProject, 1999-2014
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