Click here to Skip to main content
15,890,123 members
Home / Discussions / C#
   

C#

 
QuestionHow to set namespace to xmlDocument ? Pin
shay_he15-May-07 8:08
shay_he15-May-07 8:08 
QuestionFileSystemWatcher and two directories Pin
LCI15-May-07 8:05
LCI15-May-07 8:05 
AnswerRe: FileSystemWatcher and two directories Pin
Giorgi Dalakishvili15-May-07 8:13
mentorGiorgi Dalakishvili15-May-07 8:13 
GeneralRe: FileSystemWatcher and two directories Pin
LCI15-May-07 8:15
LCI15-May-07 8:15 
GeneralRe: FileSystemWatcher and two directories Pin
Pete O'Hanlon15-May-07 9:26
mvePete O'Hanlon15-May-07 9:26 
QuestionSyncronise the system Date through c# code Pin
sandeep kumar pundhir15-May-07 7:27
sandeep kumar pundhir15-May-07 7:27 
AnswerRe: Syncronise the system Date through c# code Pin
Dave Kreskowiak15-May-07 7:48
mveDave Kreskowiak15-May-07 7:48 
AnswerRe: Syncronise the system Date through c# code Pin
Vikram A Punathambekar15-May-07 7:56
Vikram A Punathambekar15-May-07 7:56 
In addition to the constraint you've applied, add another flag in the registry, which tells you if the product has expired or not. Initially, it should be false, but after the first time the user has used the product for more than X days, make it false. After this, even if the user manipulates the system time, the second condition will fail.

Possibly better way to do it:
I While installing, set lastUsedDate to the current date and usedDaysCount to 0 in the registry.

II Every subsequent execution
1. Compare current date with lastUsed date in registry. 
2. If they are different
    lastUsedDate = current date;
    usedDaysCount++;
3. If usedDaysCount > 10
    Display nag screen and exit
   Else
    Get on with the program.


Cheers,
Vıkram.

Déjà moo - The feeling that you've seen this bull before.

Join the CP group at NationStates. Password: byalmightybob

QuestionGetting an object location Pin
AtomRiot15-May-07 6:42
AtomRiot15-May-07 6:42 
AnswerRe: Getting an object location Pin
Judah Gabriel Himango15-May-07 7:19
sponsorJudah Gabriel Himango15-May-07 7:19 
GeneralRe: Getting an object location Pin
AtomRiot15-May-07 7:48
AtomRiot15-May-07 7:48 
GeneralRe: Getting an object location Pin
mike montagne15-May-07 16:01
mike montagne15-May-07 16:01 
GeneralRe: Getting an object location Pin
AtomRiot15-May-07 18:48
AtomRiot15-May-07 18:48 
GeneralRe: Getting an object location Pin
mike montagne16-May-07 4:52
mike montagne16-May-07 4:52 
GeneralRe: Getting an object location Pin
AtomRiot16-May-07 6:17
AtomRiot16-May-07 6:17 
GeneralRe: Getting an object location Pin
mike montagne16-May-07 6:38
mike montagne16-May-07 6:38 
Questionportal framework Pin
aine15-May-07 6:18
aine15-May-07 6:18 
AnswerRe: portal framework Pin
m@u15-May-07 20:57
m@u15-May-07 20:57 
QuestionHow to hide form when another form opens? Pin
haroon198015-May-07 6:11
haroon198015-May-07 6:11 
AnswerRe: How to hide form when another form opens? Pin
Martin#15-May-07 6:26
Martin#15-May-07 6:26 
GeneralRe: How to hide form when another form opens? Pin
haroon198015-May-07 22:37
haroon198015-May-07 22:37 
GeneralRe: How to hide form when another form opens? Pin
Martin#15-May-07 22:39
Martin#15-May-07 22:39 
Questionneed help with dynamic port for remoting. Pin
neodeaths15-May-07 6:01
neodeaths15-May-07 6:01 
AnswerRe: need help with dynamic port for remoting. Pin
led mike15-May-07 7:42
led mike15-May-07 7:42 
QuestionBuilding Complicated Objects in an N-tier application... Pin
martin_hughes15-May-07 5:36
martin_hughes15-May-07 5:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.