Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
- Dim result As String = WebClient.DownloadString("url.com/login.php?username=" + TextBox1.Text + "&password=" + TextBox2.Text)
- If result = "Login.Success" Then
- MessageBox.Show("Login successful.")
- Form2.premium = True
- Else
- If result = "Login.Failed" Then
- MessageBox.Show("Failed to login.")
- Else
- MessageBox.Show("An Error Occured!")
- End If
- End If
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment