how to click a website button using your own form?

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
 
G

G Himangi

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top