Product Key Management System

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
72 posts Page 7 of 8
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Product Key Management System
GoodGuy17
Axel wrote:
GoodGuy17 wrote:
You can make a setting in My.Settings, which is a boolean, set it to False, and call it "activated"

Then, after it is activated, add this code under it:
Code: Select all
My.Settings.activated = True
Next, on your activation Form_Load event, add this code at the beginning:
Code: Select all
If My.Settings.activated Then
'Event that happens when activated
Elseif My.Settings.activated = 0 Then
'Event that happens when not activated
End If
You can't activate an event lol :P
The definition for activate is: "make active or more active"
The event is active when it is activated
User avatar
jake-goldy
Just Registered
Just Registered
Posts: 5
Joined: Mon May 23, 2011 8:27 am

is there any way for the program to issue a 3-computer licence so the program can be used on 3 computers?

is there also a way for when the program is uninstalled the licence key can be used again.

i am wondering about these things, because i have a program i would like to distribute, but the people im giving it to will most likely use it on a school network (so they'll put my program on their usb, but use it on multiple computers).

one last thing: if i de-activate a key that has already been activated: will the person, i deactivated from, have to re-enter another key?
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Product Key Management System
Axel
GoodGuy17 wrote:
Axel wrote:
GoodGuy17 wrote:
You can make a setting in My.Settings, which is a boolean, set it to False, and call it "activated"

Then, after it is activated, add this code under it:
Code: Select all
My.Settings.activated = True
Next, on your activation Form_Load event, add this code at the beginning:
Code: Select all
If My.Settings.activated Then
'Event that happens when activated
Elseif My.Settings.activated = 0 Then
'Event that happens when not activated
End If
You can't activate an event lol :P
The definition for activate is: "make active or more active"
The event is active when it is activated
Not in programming
http://vagex.com/?ref=25000
GoodGuy17
Coding God
Coding God
Posts: 1610
Joined: Mon Sep 07, 2009 12:25 am

Re: Product Key Management System
GoodGuy17
Axel wrote:
GoodGuy17 wrote:
Axel wrote:
You can't activate an event lol :P
The definition for activate is: "make active or more active"
The event is active when it is activated
Not in programming
Yes, it applies in all terms...
If I activate something, it is then active.

What is it in your eyes then?

P.S. What is the point of this argument anyways... the code works...
User avatar
evampiro
Just Registered
Just Registered
Posts: 1
Joined: Thu Jul 21, 2011 3:32 am

Re: Product Key Management System
evampiro
this is gr8!!! thnks Man!!
User avatar
itzuqkhie
Just Registered
Just Registered
Posts: 2
Joined: Sat Jun 25, 2011 10:24 am

Re: Product Key Management System
itzuqkhie
How To Use It?
User avatar
lollipops12
New Member
New Member
Posts: 21
Joined: Thu Apr 14, 2011 6:01 pm

Nice But Whats To Stop The User From Just Guessing A Key?
User avatar
M1z23R
VIP - Donator
VIP - Donator
Posts: 622
Joined: Tue Sep 28, 2010 4:55 pm

Re: Product Key Management System
M1z23R
The actual serial key is farm more complex, it is random number somewhere between 0 and 9999999, so if you guess it, good job, you can be so lucky to crack any game '-.- Serial key isn't 1, you probably didn't understand the code, there is trial - 1, or trial - 0, if it is 0, then application isn't activated and Register/Activate form will show up, if it is 1, then it is registered and you can use it normally.

EDIT: Serial key with some lines of code can be also with letters/numbers too ;)

So there is no way you can guess it !
Last edited by M1z23R on Sun Aug 28, 2011 1:05 am, edited 1 time in total.
User avatar
Axel
Coding God
Coding God
Posts: 1928
Joined: Sun Jun 27, 2010 9:15 pm

Re: Product Key Management System
Axel
M1z23R wrote:
The actual serial key is farm more complex, it is random number somewhere between 0 and 9999999, so if you guess it, good job, you can be so lucky to crack any game '-.- Serial key isn't 1, you probably didn't understand the code, there is trial - 1, or trial - 0, if it is 0, then application isn't activated and Register/Activate form will show up, if it is 1, then it is registered and you can use it normally.
It still checks trough ftp or sql or something so you can't guess
http://vagex.com/?ref=25000
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4389
Joined: Tue Aug 04, 2009 1:47 am

Well you have to remember that these are just tutorials and this is just meant to get you started on how you could make a key manager. You can make it better and more secure by adding your own code like encrypting the keys etc.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
72 posts Page 7 of 8
Return to “Tutorials”