I am having trouble submitting a form with my program which is using the WebBrowser control.
I tried this but it did not work. The result is that the WebBrowser displays "This program cannot display the webpage" error page. The problem I think, is that the page is using javascript when it comes to submitting the form.Code:WebBrowser.Document.All("follow").InvokeMember("click")
This is the code for the submit button:
And this is the javascript for the onclick="submitIt()"Code:<input type="button" onclick="submitIt()" value="Follow" name="follow"/>
So how can I submit this form? Is there any way to invoke that javascript submitIt() method through VB.net? Or am I missing a better way to do this?Code:function submitIt(){ document.formx.submit(); }




Reply With Quote
