Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub TextBox2_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged
- End Sub
- Private Sub TextBox1_TextChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged
- End Sub
- Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
- If My.Settings.Username = TextBox1.Text Then
- If My.Settings.Password = TextBox2.Text Then
- MessageBox.Show("You have been granted access!")
- Form2.Show()
- GoTo EndOfScript
- End If
- End If
- MessageBox.Show("Log In Failed")
- EndOfScript:
- End Sub
- Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
- If TextBox1.Text = "subscribe" Then
- If TextBox2.Text = "kshadow22" Then
- MessageBox.Show("You have been granted access!")
- Form2.Show()
- GoTo EndOfScript
- End If
- End If
- MessageBox.Show("Log In Failed")
- EndOfScript:
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement