Skip to content

Instantly share code, notes, and snippets.

@johnduhart
Created November 25, 2009 20:55
Show Gist options
  • Save johnduhart/243021 to your computer and use it in GitHub Desktop.
Save johnduhart/243021 to your computer and use it in GitHub Desktop.
Public Class Form1
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim referral As Object
Dim URL As Object
referral = TextBox1.Text
URL = "http://livebux.com/?r=" & referral
WebBrowser1.Navigate(URL)
End Sub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim garbled As Integer
garbled = Int(Rnd() * 10000000)
WebBrowser1.Document.GetElementById("username").InnerText = TextBox2.Text
WebBrowser1.Document.GetElementById("password").InnerText = TextBox3.Text
WebBrowser1.Document.GetElementById("cpassword").InnerText = TextBox3.Text
WebBrowser1.Document.GetElementById("email").InnerText = garbled & TextBox5.Text
WebBrowser1.Document.GetElementById("cemail").InnerText = garbled & TextBox5.Text
WebBrowser1.Document.GetElementById("pemail").InnerText = garbled & TextBox5.Text
WebBrowser1.Document.Forms.Item(0).GetElementsByTagName("INPUT").Item("tos").SetAttribute("checked", "1")
WebBrowser1.Document.GetElementById("country").SetAttribute("value", 1)
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim referral As Object
Dim URL As Object
referral = TextBox1.Text
URL = "http://livebux.com/?r=" & referral
WebBrowser1.Navigate(URL)
End Sub
End Class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment