Populate web forms with textbox

1

I'm trying to import information from a textbox to auto-complete forms in a website, but visual studio 2013 always returns the error:

"An unhandled exception of type 'System.NullReferenceException' occurred in test.exe"

"Additional information: Object reference not set to an instance of an object."

Example:

    Private Sub Commandbutton1_Click(sender As System.Object, e As System.EventArgs) Handles Commandbutton1.Click

    Dim Procurar As String

    Procurar = Me.textbox1.Text

    Me.WebBrowser1.Navigate("www.google.com")

    Me.WebBrowser1.Document.GetElementById("lst-ib").InnerText = Procurar
    Me.WebBrowser1.Document.All("btnK").InvokeMember("Submit")

    End Sub
    
asked by anonymous 14.07.2015 / 19:45

1 answer

1

Use the link link.

Change the word test to the word you want to complete. This link will return an XML file with the words completed.

    
15.07.2015 / 04:02