Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If TextBox1.Text = "Admin" And TextBox2.Text = "chujciwdupe" Then
- MsgBox("You are Now Logged In", MsgBoxStyle.Information, "Login")
- Else
- If TextBox1.Text = "" And TextBox2.Text = "" Then
- MsgBox("No Username and/or not password Found", MsgBoxStyle.Critical, "Error")
- Else
- If TextBox1.Text = "" Then
- MsgBox("No Username Found ! ", MsgBoxStyle.Critical, "Error")
- Else
- If TextBox2.Text = "" Then
- MsgBox("No Password Found", MsgBoxStyle.Critical, "Error")
- Else
- MsgBox("Invalid Username And/Or Password", MsgBoxStyle.Critical, "Error")
- End If
- End If
- End If
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement