Solved

Visual basic 2008 webbrowser click

Posted on 2011-09-02
2
480 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
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…
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now