Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class formLogin
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If Me.txtUser.Text = "yee" And Me.txtPassword.Text = "skv" Then
- MessageBox.Show("Correct username and password")
- ElseIf Me.txtUser.Text <> "yee" Then
- MessageBox.Show("The username is incorrect")
- ElseIf Me.txtPassword.Text <> "skv" Then
- MessageBox.Show("The password is incorrect")
- ElseIf Me.txtUser.Text <> "yee" And Me.txtPassword.Text <> "skv" Then
- MessageBox.Show("Both the username and the password are incorrect")
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement