W
Waffles
Guest
Here's a simple tutorial made by me to make a login form allowing you to keep unwanted people out of your programs.
The things you will need.
- 2 text boxs
- 2 command buttons
And once your done it should look a little some thing like the picture below.
The things you will need.
- 2 text boxs
- 2 command buttons
Code:
Private Sub Command1_Click()
Dim User$, Pw$
User = "UserName"
Pw = "Password"
If Text1.Text = User And Text2.Text = Pw Then
MsgBox " Correct Login "
Unload Form1
Form2.Show
Else
MsgBox " Wrong userName And Or Password"
End
End If
End Sub
Private Sub Command2_Click()
End
End Sub
And once your done it should look a little some thing like the picture below.

