Re: Windowless WebBrowser control?

From: Gambini (buiv1_at_yahoo.com)
Date: 06/25/04


Date: 25 Jun 2004 09:19:53 -0700


> If you don't require the rendering services of the WebBrowser control, you
> may not need the control at all. The DOM is accessible with a reference to
> the mshtml library, so depending on you language and environment you could
> just include a reference to that. Then you can create in-memory html
> documents, which you can manipulate, add elements to, set element attributes
> and use for parsing html.

  Hi Charles, thanks for responding.

  I've used just the MSHTML parser before and the DOM returned isn't
the same as one available from a BHO for instance. For example, using
the MSHTML parser, I cannot access the correct "bgcolor" attribute for
the BODY tag. Also, I cannot get a DOM back from a webpage that is
XML + XSLT using just the MSHTML parser. The WebBrowser object cures
all of these deficiencies of using only the MSHTML parser. Yet, I
don't need the UI at all.



Relevant Pages

  • Re: Focus in webbrowser Control
    ... I'm using a webbrowser control in my project, ... You will have to manipulate the DOM (exposed as the webbrowser.Document ... exposes a Document property; it is the document object of the web page ... Giving focus to an element within an HTML document requires DOM-level calls; ...
    (microsoft.public.vb.controls)
  • Re: Accessing an HTML documents objects
    ... > I'm trying to access the contents of an HTML document using the object ... I know this can be done by using the WebBrowser control but I don't ... control's visible property to false seems to prevent access to the DOM. ...
    (microsoft.public.vb.controls.internet)
  • Re: Searching web sub-pages
    ... into a WebBrowser control or IE instance). ... weren't thinking of using DOM to look for the keywords. ... so as to avoid the bloat of loading them ... Then I would just parse them with InStr. ...
    (microsoft.public.vb.general.discussion)
  • Re: parsing data returned from Microsoft.XMLHTTP
    ... Could you elaborate on the WebBrowser control? ... Tom van Stiphout wrote: ... use the DOM to get to what I want. ... from a web site. ...
    (comp.databases.ms-access)