Make the Webbrowser control to scroll down the page - Programmers Heaven

Howdy, Stranger!

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

Categories

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.