Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Public Class Form1
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click 'LOGIN BUTTON
- If TextBox1.Text = My.Settings.username And
- TextBox2.Text = My.Settings.password Then
- MsgBox("Correct information. Access Granted!", vbInformation)
- Me.Hide()
- Form2.Show()
- Else
- MsgBox("Error - Wrong login-information written.", vbCritical)
- End If
- End Sub
- Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click 'REGISTER BUTTON
- My.Settings.username = TextBox3.Text
- My.Settings.password = TextBox4.Text
- My.Settings.Save()
- MsgBox("Account created.", vbInformation)
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement