Page 1 of 2

Keygen

Posted: Fri Nov 27, 2009 9:55 pm
by MasterCoding
add 1 button
add 1 textbox

button1 change the text to Generate

Use this code for button1 click event
Code: Select all
TextBox1.Text = Int(Rnd() * 4)
Select Case TextBox1.Text
Case 0
TextBox1.Text = "CD key"
Case 1
TextBox1.Text = "CD key"
Case 2
TextBox1.Text = "CD key"
Case 3
TextBox1.Text = "CD key"
Case 4
TextBox1.Text = "CD key"
Case 5
TextBox1.Text = "CD key"
End Select
This generates the serial key
where stands cd key there has to be the serial

and of course you can add more cases

Re: Keygen

Posted: Fri Nov 27, 2009 10:15 pm
by NoWayIn
Erm, not new and not hard to do, easy for beginners.

You could make it a bit better by adding a list of programs

Re: Keygen

Posted: Fri Nov 27, 2009 10:18 pm
by MasterCoding
wich programs do you mean?

Re: Keygen

Posted: Fri Nov 27, 2009 10:22 pm
by NoWayIn
Like adding a ComboBox with several programs that they can choose from to get the serial for

Re: Keygen

Posted: Fri Nov 27, 2009 10:26 pm
by MasterCoding
i don't know the code about that

Re: Keygen

Posted: Fri Nov 27, 2009 10:39 pm
by NoWayIn
You still use select case but you use it with the combobox

Re: Keygen

Posted: Sat Nov 28, 2009 12:01 am
by Robby
yes, this is basic but fun to do :D

and i would go with nowayin;s idea
it would look more professinal. :D


Good Luck!

Re: Keygen

Posted: Sat Nov 28, 2009 7:31 am
by MasterCoding
can you make that code i can't i tryd

Re: Keygen

Posted: Sat Nov 28, 2009 3:22 pm
by Robby
welll wait a minute i will post the code in 10 mins becuz i brb eat :D

u want the combobox one right?

Re: Keygen

Posted: Sat Nov 28, 2009 4:40 pm
by MasterCoding
yes