Sunteți pe pagina 1din 6

How to make a Keygen on Visual Basic 6.0 on a .exe form.

Making a Keygen in Visual Basic 6.0


There are multiple ways to make a Keygen, depending on how you want to make one look like. In this
guide you can see whatever way you want to make a Keygen through the table of contents. So Enjoy!

Number = Page Number Table of Contents


1. Making a Keygen with only one Command Button
2. Making a Keygen with Hidden Features
3. Making a Keygen with a List box
4. Windows Media Player Auto Play
5. Codes
How to make a Keygen on Visual Basic 6.0 on a .exe form.

Making a Keygen with only one Command Button

Step 1: What you need.


You will need a Command Button, and a textbox.

Step 2: Setting up a code.


Design however you want your Keygen then double click or right click and click view code .
Now in between Private Sub and End Sub, type in this:
Dim Key As Integer
Key = Int(Rnd() * 5)
Select Case Key
Now the *5 means that how many keys you have. If you have 3 keys then put in 3 because if you put like
20 then there will be 17 extra you don t need and it will slow down you command button click rate. Now
let s start putting in the keys, Under Select Case Key Tab. Enter this:
Dim Key As Integer
Key = Int(Rnd() * 5)
Select Case Key
Case 0
Text1.text = your key
The Case 0 is ONE of the cases, so you can go up to 0,1,2,3,4 if you have 5 in the *5 area. After the
Case, tab and put in text1.text = your key . Now for another case just go back and put in how much you
want or have.
Dim Key As Integer
Key = Int(Rnd() * 3)
Select Case Key
Case 0
Text1.text = your key
Case 1
Text1.text = your other key
Case 2
Text1.text = your other other key
End Select
After you have all your cases make sure you End the Select Case.
How to make a Keygen on Visual Basic 6.0 on a .exe form.

Making a Keygen with Hidden Features

Step 1: What you need


You will need 3 Command Buttons, 1 textbox, 3 labels.

Step 2: Setting the Hidden things


Set the 3 Command Buttons visible property to false . You can decorate your Keygen however
but keep those hidden.

Step 3: Making Labels Work


The Labels will be the name of what key you re going to give. Let s say that the first label is going
to give keys to something called The Game . The Second one is going to give keys about The Second
Game . The Third one is going to give keys to The Third Game . So you can change the caption then
open up the first label code.
So we are going to make the first label make the first command button visible. So Type this in:
Command1.visible = true
That s pretty simple, so now open up the command1 code and put in the code that we had on the second
page of this guide.
So with you keys on command1 now, go ahead and do that with all 3 labels and buttons. Now if
you have tested that and you will see if you click label1 then you click label2 command1 does not go away.
So on label1 code put in:
Command2.visible = false
Command3.visible = false
On label 2 put:
Command1.visible = false
Command3.visible = false
On label 3 put:
Command1.visible = false
Command2.visible = false
Now when you click on them the other buttons you don t need will go back invisible.
How to make a Keygen on Visual Basic 6.0 on a .exe form.

Making a Keygen with a List Box


Step 1: What you need
1 list box, 3 hidden command buttons, 1 textbox

Step 2: Set up List Box


Decorate however you want your Keygen to look like and make sure the command buttons are
NOT VISIBLE! Now to add stuff in your list box you need to open up the FORM LOAD code. To do so
you can double click anywhere in your form and it should come up. Type this in:
List1.additem Whatever you want
You can put whatever in the .

Step 3: Working the List Box


Now that you have Whatever you want on your list you can t really do anything. So open up the
LISTBOX code, now you need to make a If code. To do so type this in:

If list1 = Whatever you want (MAKE SURE IT IS THE EXACT SAME TEXT AS ON THE FORM LOAD CODE)
Then
Command1.visible = true
End if
If you want to know what this code means, If list1 (when clicked) = Whatever you want then
(what will happen) command1.visible = true (only happens if clicked on Whatever you want )
Now to be ahead of time put in this after command1.visible = true:
Command2.visible = false
Command3.visible = false
Now you can make the command button do whatever you want. To make another list item just put
in another: list1.additem Another code under the first one. Then you can continue with the command
buttons.
How to make a Keygen on Visual Basic 6.0 on a .exe form.

Windows Media Player Auto Play


Right click the left toolbar and click components , look for windows media player and check it.
Now drag it onto your form and open up the FORM LOAD code. Type this in:
Windowsmediaplayer1.URL = URL FOR MUSIC
Now when you load up your exe it will start automatically so you can make it invisible!
How to make a Keygen on Visual Basic 6.0 on a .exe form.

Codes
1.
Dim Key As Integer
Key = Int(Rnd() *how many keys)
Select Case Key
Case 0
Any Code you want (text1.text = hi
End Select

2.
Command1.visible = false
Command2.visible = false
Command3.visible = false

Command1.visible = true
Command2.visible = true
Command3.visible = true

3.
List1.additem Whatever you want

If list1 = Whatever you want then


Command1.visible = true

4.
Windowsmediaplayer1.URL = URL

S-ar putea să vă placă și