Post: How to make a Simple Login Form (VB2008)
05-09-2011, 11:50 PM #1
(adsbygoogle = window.adsbygoogle || []).push({});
Originally posted by kingdeath360 View Post
This tutorial is about: 'How to make a simple login form in Visual Basic
2008'

So lets get started!
First of all you need open up Visual Basic 2008, then you will see this:
You must login or register to view this content.

Now, you need to create a new project, by going to top left corner, and
click on 'File' then on 'Create', or 'Create New Project'. Select 'Windows
Forms Application'.
Name it: 'ASimpleLoginForm' without '
Now you have something like this:
You must login or register to view this content.

Now, you will add 2 Textbox's, 2 Labels and 1 Button.
Name them like this by going to the Properties Pannel:
You must login or register to view this content.

Now, place them like this:
You must login or register to view this content.

When you are done with that, click on the Textbox where you putted in
'Password' without ', now go to the properties pannel, and where you
see 'PasswordChar' without ', you can typ in * or #, choose what
Password Char you want.
If you are done that, double click 'Button1' or where you putted in:
'Login' without ', you will see something like this:
You must login or register to view this content.

Now put in this code:
    If TextBox1.Text = "BananaSplit" And TextBox2.Text = "Hack Forums" Then
MsgBox("You are logged in!", MsgBoxStyle.Information, "")
Else
MsgBox("Wrong Username/Password", MsgBoxStyle.Critical, "")

End If
If TextBox1.Text = "" And TextBox2.Text = "" Then
MsgBox("Nothing typed...", MsgBoxStyle.Critical, "")

End If

Click on the green button at the top to debug it. You will see something
like this:
You must login or register to view this content.

Now try it out! If you putted in everything correctly, then it should work
fine!
If you need help, reply Smile

its a c&p///////////////////////////////

Copyright © 2024, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo