Advertisement
Guest User

Untitled

a guest
Mar 27th, 2015
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Public Class formLogin
  2.  
  3. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  4. If Me.txtUser.Text = "yee" And Me.txtPassword.Text = "skv" Then
  5. MessageBox.Show("Correct username and password")
  6. ElseIf Me.txtUser.Text <> "yee" Then
  7. MessageBox.Show("The username is incorrect")
  8. ElseIf Me.txtPassword.Text <> "skv" Then
  9. MessageBox.Show("The password is incorrect")
  10. ElseIf Me.txtUser.Text <> "yee" And Me.txtPassword.Text <> "skv" Then
  11. MessageBox.Show("Both the username and the password are incorrect")
  12.  
  13. End If
  14.  
  15.  
  16.  
  17. End Sub
  18. End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement