VB.NET

Moderators: seancampbell
Number of threads: 4020
Number of posts: 10026

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Make the Webbrowser control to scroll down the page Posted by marpeto on 30 Nov 2006 at 5:24 AM
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?
Report
Re: Make the Webbrowser control to scroll down the page Posted by PavlinII on 2 Dec 2006 at 10:24 AM
: 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

Pavlin II[/size]

Don't take life too seriously anyway you won't escape alive from it!





 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.