Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Visual basic 2008 webbrowser click

Posted on 2011-09-02
2
Medium Priority
?
502 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 96

Accepted Solution

by:
Bob Learned earned 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

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 …
This article describes how to add a user-defined command button to the Windows 7 Explorer toolbar.  In the previous article (http://www.experts-exchange.com/A_2172.html), we saw how to put the Delete button back there where it belongs.  "Delete" is …
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 a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

636 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