[Visual basic.net]Simple login system

A Place For Programmers Of All Levels To Discuss Programming & Web Building.

Moderator: Community Moderator

Post Reply
User avatar
djfshady
Corporal
Corporal
Posts: 25
Joined: 26 Nov 2010, 20:12
Location: United Kingdom
Been thanked: 5 times
Contact:

[Visual basic.net]Simple login system

Post by djfshady »

Today we are going to learn how to make a login system that will once logged in will show a new form in this tutorial it wil be a simple form with the word hello i have included a video tutorial from my youtube account.

first you need to add 2 labels,2 textbox's and a button

ok name label1 username and label 2 password

place textbox1 with label 1 and textbox2 with label2

name button1 Login

make another form by going to project then add windows form then click ok

now for the coding!!

double click on button1 (Login) and enter in this:

Code: Select all

If TextBox1.Text = "username here" And TextBox2.Text = "password here" Then
            Form2.Show()
        Else
            MsgBox("error username or password is incorrect please try again")
        End If
and there you go a simple login system
Image
~Poison~
Soldier First Class
Soldier First Class
Posts: 8
Joined: 09 Mar 2012, 12:57
Location: Egypt
Contact:

Re: [Visual basic.net]Simple login system

Post by ~Poison~ »

Nice Share but it would be more helpful if it was for MySQl and sites Databases
Post Reply

Return to “Programming/Web Building Chat & Support”