how to click a website button using your own form?

  • Thread starter Thread starter the_only_steven
  • Start date Start date
T

the_only_steven

hey all,
I use the visual basic 2005 version and I want to click a button on a
website using a button on my main form.

I use the Webbrowser to navigate to the correct site
WebBrowser1.Url = New Uri("site")

On that site there is a button which needs to be clicked
It is coded in Java like the following
<input type="submit" name="submit" value="send!">

The "send!" is the text that is displayed on the button on the site.

If you know how to do this please help me

Thx,
Steven

ps: I dont know that much yet from webbrowser and visual basic so if
you paste some code or so please add some comments to it so its easyer
to understand. Thx
 
HtmlElement he = webBrowser1.Document.All.GetElementsByName("submit")[0];
he.Invokemember("Click")

---------
- G Himangi, Sky Software http://www.ssware.com
Shell MegaPack : GUI Controls For Drop-In Windows Explorer like Shell
Browsing Functionality For Your App (.Net & ActiveX Editions).
EZNamespaceExtensions.Net : Develop namespace extensions rapidly in .Net
EZShellExtensions.Net : Develop all shell extensions,explorer bars and BHOs
rapidly in .Net
 
Back
Top