944,110 Members | Top Members by Rank

Ad:
Jun 15th, 2007
0

Make a form unable(or get expired) after particular duration

Expand Post »
hello,

I am working on a module in which i have to make a particular form available to the user for 30 days and after that he has to validate this from admin to use it further. Now, i don't know how should i do this.
I don't know what should i do and where to go to make this type of provision. If that will happen using a DLL, even then i don't know how to do this and what will be the code and how to proceed.

If anyone know, please tell me.

Thanks in advance.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Es Sayen is offline Offline
19 posts
since Jun 2007
Jun 15th, 2007
0

Re: Make a form unable(or get expired) after particular duration

ok well justs think of it logically.

1. load application
2. check current user (i.e. login)
3. find if user has expired (from database or other source that holds signup date
4. if it has expired disable / hide form and show signup for full trial

basically you will need someway of storing the users details about when they first used the app / installed it.

Best way i can see of doing this is via a database of users (as wouldnt you be using a database to login if this was the case anyway ?)

i dont really know what you want all these sections if you dont know how to perform them will be easily found by googling. if you need anymore help just pb.
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

hello fungs,

Thanks for your reply.
Yes, i also thought the same way as you have mentioned. But it is not possible!
Actually, the complete query is

First, the username and password should not be strored in the database, but in some file or something like that so that no other person can locate where it is stored and placed.

Second, when the software started on the user computer then he/she will enter a date for the first time and that date field will be stored in some file (not in database) and the date will be compared with the number of days to be used. So that after completion of the days the software stops working and the login name and password get expired for the user.
Now, i am just looking for the point from where to start.
I have searched on google too, but of no help.
So, i posted my query here. If anyone can help me i will really appreciate that.

Thank You.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Es Sayen is offline Offline
19 posts
since Jun 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

Hello Sayen, This is not much problematic.

See, when the apllication runs in a clients computer for the first time, try to write a file in some directory, if little deep it will normaly will be unoticed by a common user.

Store in it the date first started this program. ofcourse, if the data is cripted it is more good.

In your program before loading the particular form cheack the file iwhether it is created or not.

if created read the cripted date, decript it ,subtract that date from now(), if > 30 exit sub else create the file, store the Now() in it, endif

One problem is there. If somebody knows it, he will keep on backdating the computer and your form will be ever visible.
This, you have to trade of.

Happy programming!
Reputation Points: 10
Solved Threads: 9
Junior Poster
AV Manoharan is offline Offline
166 posts
since Jun 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

Hello Manoharan,

Thanks for your reply.
I got the point, but can you tell me, do i need to use some special type of file or can i go with notepad.
Should i store the username and password in the same way (if yes), then in the same file or use some different.
One thing more can you tell me how can i encrypt the data.

Thanks again.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Es Sayen is offline Offline
19 posts
since Jun 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

you can use any old file even make one up to meet your needs. the best solution would to make an encryption yourself. this could be a really simple one or as complex as you wish to make it. But storing the data shouldnt be too much of a problem. Just make sure you know how you have saved it and how to read from it. A the end of the day all applications are not HACKER PROOF some are just harder to beat than others.

i actually have a encryption class i use in .net which is a pretty easy one. it just converts a string to its hex value perhaps something as simple as this would meet your requirments. there are plenty of tutorials out there that would show you how to do this.
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

and that gave me an idea why not share what ive done to all the lovely people out there. encryption http://www.daniweb.com/code/showsnippet.php?codeid=726
Reputation Points: 66
Solved Threads: 56
Posting Pro in Training
Fungus1487 is offline Offline
459 posts
since Apr 2007
Jun 16th, 2007
0

Re: Make a form unable(or get expired) after particular duration

Click to Expand / Collapse  Quote originally posted by Fungus1487 ...
and that gave me an idea why not share what ive done to all the lovely people out there. encryption http://www.daniweb.com/code/snippet726.html

Thanks Fungs,

I will try this and let you know.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Es Sayen is offline Offline
19 posts
since Jun 2007

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Listbox help
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: Control Arrays





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC