Re: Referencing Web Controls/Elements



JonWayn <JonWayn@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
I am utilizing the WebBrowser control in a number of applications - I
am fairly new to it. I find a lot of the times that when I run my
codes, GetElementsByTagName (and other similar functions) returns
Nothing, as opposed to stepping through the same codes, in which case
it returns the elements that I need.

This suggests you are running your page processing too early, before the
page has fully loaded. When you step through the code, you slow the
program down and the page manages to load. Realize that the WebBrowser
loads pages asynchronously: wait until DocumentComplete event before
walking the page's DOM.
--
With best wishes,
Igor Tandetnik

With sufficient thrust, pigs fly just fine. However, this is not
necessarily a good idea. It is hard to be sure where they are going to
land, and it could be dangerous sitting under them as they fly
overhead. -- RFC 1925


.



Relevant Pages

  • Re: P0171/P0174 Help! *update*
    ... Been chasing after the source of intermittent P0171/P0174 (always both ... I do have freeze frame data from the trouble codes as noted below: ... Closed loop / closed loop ... load 19.2% ...
    (rec.autos.tech)
  • Re: Dynamically add link button
    ... > show this codes to him in some combo box. ... > false.When user click the button set visibility to true and when choose ... If the panel is Visible = false, it and all its child controls are not ... On the button click load the DropDownList with the values and set the panel ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Fast Load?
    ... > I posted this in the pocketpc.developer newsgroup but maybe this is the ... > They seem to take about the same amount of time to load ... > Codes is loaded into a Combobox and when the user selects a Code; ...
    (microsoft.public.sqlserver.ce)
  • Re: How do I load Office 2000?
    ... That computer is gone and the new one I have I was able to load the software ... None of work for Microsoft. ... key codes I wouldn't have come here to this site in the first place. ... JoAnn Paules ...
    (microsoft.public.office.misc)
  • Re: VB Controls In VB2005
    ... I clicked "refresh" ... Do I have to do this everytime I change the codes in the Designer? ... Then when design view refreshes the control should be ... One of the error was that it wouldn't load a VB6 control. ...
    (microsoft.public.dotnet.languages.vb)