Heres The VidI Made
Code:
http://www.youtube.com/watch?v=v-ORxz030mA
Heres The Tutorial Written
What You Need Is
2 Buttons
2 Text Boxes
2 Labels
2 Forms
Ok Heres Wat You Need To Do
TextBox1 = User Name
TextBox2 = PassWord
Button1 = Login
Button2 = Close
Oh And If You Dont Know How To Add A New Form Right Click Your main Project Not "My Project" But The Thing above And Go To Add Then Select Add Windows Form and dont change the text when it asks if you want
Now The Coding
For Button1 aka Login Button Put This
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
If TextBox1.Text = "Your UserName" And TextBox2.Text = "Your Pass" Then
MsgBox("Welcome To Locked Program")
Form2.Show()
Me.Hide()
Else
MsgBox("Wrong UserName or Password")
End If
End Sub
For Button2 aka Close Put
End
Bookmarks