CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    stop the WebBrowser from downloading the graphics, ...

    How can I stop the WebBrowser from downloading the graphics, Java classes, etc? I just need the text but as a Document object so I can eazy access its tags.
    Or, which is the best way to get the "Document" object from a URL so I can access the TAGS? Can this be done without using the webbrowser control?
    If I use the Inet control to get the source how can I build the Document object?
    ThanX.




  2. #2
    Join Date
    Jan 2000
    Location
    Olen, Belgium
    Posts
    2,477

    Re: stop the WebBrowser from downloading the graphics, ...

    Use the Microsoft Internet Tranfer Control instead of the webbrowser control. With this you can get the code of a page in a string or textbox.


    private sub command1_click()

    text1.text = inet1.OpenUrl("http://codeguru.developer.com")
    ' this will place the code of the page into text1

    end sub




    Tom Cannaerts
    [email protected]

    The best way to escape a problem, is to solve it.
    Tom Cannaerts
    email: [email protected]
    www.tom.be (dutch site)

  3. #3
    Join Date
    Dec 1999
    Location
    Europe
    Posts
    27

    Re: stop the WebBrowser from downloading the graphics, ...

    Sorry, but you didn't answer my question: "If I use the Inet control to get the source how can I build the Document object?"




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured