Solved

Visual basic 2008 webbrowser click

Posted on 2011-09-02
2
483 Views
Last Modified: 2013-11-27
hello my friends i am very need click in a link in one website using webbrowser in visual basic 2008 express and not sucess in click.
the html is
<td class="tdTituloMenuPai" colspan="2">
<a href="#" class="aMenuNome" onclick="mudaClasseLink(this,1,0,0);CloseAll();ajaxProcessUrl('/axmf/empresasonline91', tratarResposta);return false;">Empresa Online 91</a>

in delphi i am click in this using
Doc2 := wb.Document as IHTMLDocument2;
elementos := doc2.links;
      for i := 0 to elementos.length - 1 do
      begin
        elemento := elementos.item(i, 0) as IHTMLElement;
        if Assigned(elemento) then

         begin
           if (pos('Empresa Online 91',elemento.outerText) > 0)  then
          begin
            elemento.click;
what i am need code for click in this on visual basic 2008 express. thankssss

0
Comment
Question by:kidd12
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 36477871
Simple "Click" example:

WebBrowser1.Document.GetElementById("search").InvokeMember("submit")

Open in new window



0
 

Author Closing Comment

by:kidd12
ID: 36585134
thanks
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question