Guest User

Untitled

a guest
Dec 27th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
  2. My.Settings.username = TextBox1.Text
  3. My.Settings.password = TextBox2.Text
  4.  
  5. If String.IsNullOrWhiteSpace(TextBox1.Text) OrElse String.IsNullOrWhiteSpace(TextBox2.Text) Then
  6. MsgBox("Wrong username or password!")
  7. ElseIf TextBox1.Text = My.Settings.username And TextBox2.Text = My.Settings.password Then
  8. MsgBox("Welcome, you were successfully logged in!")
  9. Me.Hide()
  10. Selector.Show()
  11. End If
  12. End Sub
Add Comment
Please, Sign In to add comment