MPGH - MultiPlayer Game Hacking


Go Back   MPGH - MultiPlayer Game Hacking > Programming > Visual Basics

Reply
 
LinkBack Thread Tools Display Modes
Old 01-07-2009   #1 (permalink)
Expert Member
 
apezwijn's Avatar
 
Join Date: Feb 2007
Location: The Netherlands
Posts: 582
Thanks: 27
Thanked 160 Times in 71 Posts
apezwijn is on a distinguished road
Exclamation [Tut visual basics 2008] How to make a Password protection (for beginners)

Tutorial Created By me.
Insipired by M60 and djonidjo.

Alright START Visual Basics 2008,
Press File > New Project

Fill in a desired (=wanted) project name.
Mine Will be: PassProtect

On the left of the screen you should see a Toolbox with all kinds of stuff.

Picture Insrutions:
Select the TextBox from the toolbox and select a place on your form while holding the mouse, now let go of the mouse and tada you have a textbox.

Click on the litle picture to enlarge it.


Now Double click it and type this:
Code:
TextBox1.passwordchar = ("*")
Explaination:
TextBox1. tells the console to use a function of TextBox1
.Passwordchar means to use the function Passwordchar
=("*") gives the value of passwordchar * as a string, withouth the "" the star would mean X like (example) 1X3 = 6 thats for calulating we don't want that.

Add a button from the ToolBox
Do the same as with the textbox only size it less wide.


Make sure the button is selected and look at the bottom left of the screen,
you should see a property's box, look for Text and change it to OK

The Text of a button is what it shows on the button.

Screenshot:


Double Click the button and insert this:
Code:
If TextBox1.Text = "Disired Password" Then
            ' This means if TextBox1.text has the correct password (change it) it does
            ' somthing, in this case it will tell you a msg.
            MsgBox("Correct Password!")
        Else 'this means if the text in textbox1 is not Equal (=) to "Disired Password" then do following. In this case it's a message
            MsgBox("Invalid Password! Please try again.")
        End If
When you've copied this to the button the green text will give you more information,
btw: you make this 'green text' by adding ' before the text. This is what I call a note.

Now your done!
Press F5 to run it (in debug mode wich will tell you if there are any errors in the program when executing a command).

To save it press File > Save all.

To build (first need to save!) press Build > Build PassProtect

You will find the .exe at your Documents then Visual Studio 2008 > Projects >
PassProtect > Bin > Release > PassProtect.exe

(You have to Build it before the .exe will be at that location).


You can download the Source below, open it with VB2008.
Attached Files
File Type: rar PassProtect.rar (87.2 KB, 18 views)
__________________


apezwijn is offline   Reply With Quote
Sponsored Links
Old 01-13-2009   #2 (permalink)
Choob
 
Join Date: Mar 2008
Posts: 12
Thanks: 2
Thanked 0 Times in 0 Posts
Jianwei is on a distinguished road
great job Apezwijn , it remind me of my vb source last time

shall learn back vb for awhile.. just that some codes i don't know how to put it in

can i send you a pm in forum ? for helping me out :P
Jianwei is offline   Reply With Quote
Old 01-23-2009   #3 (permalink)
Expert Member
 
djonidjo's Avatar
 
Join Date: Jul 2007
Location: D:\J\O\N\I\D\J\O.exe
Gender: male
Posts: 741
Thanks: 26
Thanked 160 Times in 36 Posts
djonidjo is on a distinguished road
Hey djonidjo, thats me!
Great job ape!
__________________
YouTube Video
ERROR: If you can see this, then YouTube is down or you don't have Flash installed.


Hardstlye !
djonidjo is offline   Reply With Quote
Old 01-28-2009   #4 (permalink)
Choob
 
jvwarrior's Avatar
 
Join Date: Oct 2008
Posts: 5
Thanks: 1
Thanked 0 Times in 0 Posts
jvwarrior is on a distinguished road
Nice tut Apezwijn!
jvwarrior is offline   Reply With Quote
Reply

Bookmarks

Tags
2008, apezwijn, password, protect

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump


All times are GMT -5. The time now is 09:11 PM.

no new posts