Guest User

Untitled

a guest
Jan 20th, 2019
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles button1.Click
  2. If String.IsNullOrEmpty(textBox2.Text) = True Then
  3. 'TODO: check user/pass for null.
  4. MessageBox.Show("Please enter a valid username then try again", "Invalid username", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
  5. Return
  6. ElseIf IsValidEmailAddress(textBox1.Text) = False Then
  7. MessageBox.Show("Invalid Email Detected", "Invalid Email", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
  8.  
  9. Return
  10. ElseIf Not String.IsNullOrEmpty(textBox2.Text) = True AndAlso Not IsValidEmailAddress(textBox1.Text) = False Then
  11. Me.Text = "Connecting... Please wait."
  12. m_ChildForm.Host = reader.GetIP()
  13. m_ChildForm.Nickname = textBox2.Text
  14. m_ChildForm.Username = textBox1.Text
  15. m_ChildForm.Password = textBox3.Text
  16. m_ChildForm.StartConnection(False)
  17. Me.Text = "Login - " & reader.GetBuisnessName()
  18. End If
  19. End Sub
Add Comment
Please, Sign In to add comment