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