I need to send out a calculation program to my colleagues for evaluation and get feedback. I just want this program to work until Friday of this week. How can I do this?
Thanks,
Nina
Printable View
I need to send out a calculation program to my colleagues for evaluation and get feedback. I just want this program to work until Friday of this week. How can I do this?
Thanks,
Nina
couldnt u do something on the Form load.
i guess u would use date.Now
so something like
If date.now = thedate Then
Me.Close
End If
idk, just guessing
If 'thedate' is February 29, 2008 then do I write it like this?
Code:If date.now = 02/29/2008 Then
Me.Close
End If
Quote:
Originally Posted by MrMakealotofsmoke
But this way, they only need to change the system date and the app will work once again.Quote:
Originally Posted by MrMakealotofsmoke
No, you wouldn't write it like that. Try this:Quote:
Originally Posted by nina_le_huynh
vb.net Code:
Dim d As New Date(2008, 2, 29)
It should be ok because my colleagues wouldn't change the system date to bypass the restriction. I just want them to use the revised version.
I just tried to use 'thedate' as 02/29/2008 but it doesn't work.
Quote:
Originally Posted by obi1kenobi
It worked,
I put this into the FormLoad and I couldn't open my program.
Thank you very much, you saved me lots of time.Code:Dim thedate As New Date(2008, 2, 20)
If Date.Now > thedate Then
Me.Close()
End If
Quote:
Originally Posted by obi1kenobi
You're welcome, just please don't forget to rate my posts if I've been helpful. Thanks :)
yer same :P