Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Make the Webbrowser control to scroll down the page

marpetomarpeto Posts: 1Member
I love the webbrowser control, it makes it so simple to show a page. But I have two questions.

How can I test that the whole page is loaded?
Is it possible to make the loaded page scroll down automatically - slowly?

Comments

  • PavlinIIPavlinII Posts: 404Member
    : I love the webbrowser control, it makes it so simple to show a page. But I have two questions.
    :
    : How can I test that the whole page is loaded?
    : Is it possible to make the loaded page scroll down automatically - slowly?
    :
    Hi,
    about scrolling, you have to do this within .Document object (if exists, if not, there's nothing to scroll)

    I found this example, it's in c++, but you can find the idea there. (Or take to msdn to those interfaces descriptions and examples)
    http://www.codeproject.com/miscctrl/scrollbrowser.asp

    And about determinig if page is loaded, use Navigated, DocumentCompleted or FileDownloaded events to handle this state. You can also use ProgressChanged event to monitor overall progress.

    Hope this helps

    [blue][b][italic][size=4]P[/size]avlin [size=4]II[/italic][/size][/b][/blue]

    [purple]Don't take life too seriously anyway you won't escape alive from it![/purple]


Sign In or Register to comment.