Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Tut] Simple Login System Visual Basic 2010 [Tut]
#1
Allright, get a forum with 2 labels, 2 buttons, 1 linklabel and 2 textboxes and make it look similar like this

[Image: loginsystem1.png]

Now go to ur Project Properties

[Image: loginsystem2.png]

Then go to Settings and under "Name" add: Username, Password and PasswordHint like this
[Image: loginsystem3.png]

Now go to the Login button double click it and add this code:

Code:
If TextBox1.Text = My.Settings.Username And
           TextBox2.Text = My.Settings.Password Then
            MsgBox("You sucessfully logged in")
        Else
            MsgBox("Incorrect Username or Password, Please try again", MsgBoxStyle.Critical)
        End If

Now double click Create a Account and add this code

Code:
Form2.Show()

Now add a new form to the project and make it similar like this

[Image: loginsystem4.png]

Double click on Create a Account and add this code

Code:
My.Settings.Username = TextBox1.Text
        My.Settings.Password = TextBox2.Text
        My.Settings.PasswordHint = TextBox3.Text
        My.Settings.Save()

EDIT: forgot this:
Double click on ur Linklabel Frorgot Password? and add this code:

Code:
msgbox("Your password hint is: " + My.Settings.PasswordHint )

Video: http://www.youtube.com/watch?v=OGLSsspKPpI
Reply
#2
Great Tutorial Buddy xD
Reply
#3
Thanks for sharing this!
I was actually looking for this <3
Reply
#4
Nice tutorial if you made this into a video it could be a popular vid.
Reply
#5
Actually looks very nice.

Keep the tutorials coming; they look great and are very informative.
Reply
#6
(08-01-2012, 09:47 PM)Iwandesjon Wrote: Allright, get a forum with 2 labels, 2 buttons, 1 linklabel and 2 textboxes and make it look similar like this

[Image: loginsystem1.png]

Now go to ur Project Properties

[Image: loginsystem2.png]

Then go to Settings and under "Name" add: Username, Password and PasswordHint like this
[Image: loginsystem3.png]

Now go to the Login button double click it and add this code:

Code:
If TextBox1.Text = My.Settings.Username And
           TextBox2.Text = My.Settings.Password Then
            MsgBox("You sucessfully logged in")
        Else
            MsgBox("Incorrect Username or Password, Please try again", MsgBoxStyle.Critical)
        End If

Now double click Create a Account and add this code

Code:
Form2.Show()

Now add a new form to the project and make it similar like this

[Image: loginsystem4.png]

Double click on Create a Account and add this code

Code:
My.Settings.Username = TextBox1.Text
        My.Settings.Password = TextBox2.Text
        My.Settings.PasswordHint = TextBox3.Text
        My.Settings.Save()

I will add a video soon thanks for reading (:

Here's the code for the Password Hint (The blue link)
MsgBox(My.Settings.PasswordHint)
(What that does is show the user the password hint for the account)
Reply
#7
Good job on your tutorial buddy, i have not looked at VB code in two years lol!
It has the most straight forward syntax ever! Great job though buddy!
Reply
#8
(08-02-2012, 02:42 AM)Oqud Wrote: Here's the code for the Password Hint (The blue link)
MsgBox(My.Settings.PasswordHint)
(What that does is show the user the password hint for the account)
holy forgot that one thanks bro
Reply
#9
Updated with a video: http://www.youtube.com/watch?v=OGLSsspKPpI
Reply
#10
Thanks For The Video..

Im Not Good At Reading Them xD.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)