CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2009
    Posts
    2

    Question Application for people with disabilities x WebBrowser component

    Hi friends,

    First of all, sorry for my limited english. I'll do my best.
    Huge, huge problems, directly from Brazil... :|

    I'm working on a VB.NET application for disabled people which uses the WebBrowser control to capture the HTML content from an webpage (just to present, after some code treatment, in a textbox) and trying to solve the following three problems:

    1) I'm using the WebBrowser control just to load a web page, but some pages provide a refresh after some minutes. Is it possible to avoid/disable the WebBrowser refresh (important: I need to keep the WebBrowser instance alive, so I can simply dispose it) or I'll have to rewrite my application to use WebClient control instead? (solution that will be provide much more work in my case).

    2) The DocumentCompleted event, that takes the HTML content and shows in the textbox, is called several times for some pages (like www.uol.com.br) and obviously beginning to execute the code on my sub method several times too. A friends of mine tell me that maybe it can be solved "setting the WebBrowser for HTTP 1.0 to avoid the load from Ajax content". Is there anyone who knows how to do it or simply knows a way/event more precise?

    3) Is it possible to take the HTML content and convert the charset "on the fly"? If not, anyone knows an URL with a sample code?

    Thanks very very very very very very much for any help, that will be really
    precious to me and my friends.

    Hugs from Brazil,
    Alexandre.

  2. #2
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    Re: Application for people with disabilities x WebBrowser component

    If you capture it first, you can do whatever you want with it, BEFORE loading it into your WB control, I'd think.


    You might also look at IE8 as a display mechanism. It includes some amazing improvements in zooming, and other features for the visually impaired
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  3. #3
    Join Date
    Mar 2009
    Posts
    2

    Re: Application for people with disabilities x WebBrowser component

    Hi dglienna... Thank you very much for your time. An other forum's friend sent me a solution to the problem number 2 (envolving the DocumentCompleted event). Now I'm trying to find a way to stop the page refreshs and show the page with the right encoding.

    Important: I can't use the IE8 display mechanism because my application needs to capture and improve the content for a specific kind of impaired user...

    Thank you again!

Tags for this Thread

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