Page 1 of 1

[Visual basic.net]Simple login system

Posted: 26 Dec 2010, 06:16
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

Re: [Visual basic.net]Simple login system

Posted: 09 Mar 2012, 16:55
by ~Poison~
Nice Share but it would be more helpful if it was for MySQl and sites Databases