Solved

Visual basic 2008 webbrowser click

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Suggested Solutions

zlib is a free compression library (a DLL) on which the popular gzip utility is built.  In this article, we'll see how to use the zlib functions to compress and decompress data in memory; that is, without needing to use a temporary file.  We'll be c…
Entering time in Microsoft Access can be difficult. An input mask often bothers users more than helping them and won't catch all typing errors. This article shows how to create a textbox for 24-hour time input with full validation politely catching …
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

762 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

19 Experts available now in Live!

Get 1:1 Help Now