WebBrowser Scrollbar Document Positioning

G

Guest

I am using the AxWebBrowser component in my C# .NET application and am
navigating to an outside .HTML file periodically. Whenever I refresh the
WebBrowser with the updated HTML file by using Navigate method, it displays
it from the top. How do I automatically scroll the view down to the last
line of the document?

Thanks!
 
W

Wilco Bauwer

You can do this with some javascript. If i recall correctly, it's
something like "self.scrollTo(x, y);". You could either embed this in
your HTML, or use the AxWebBrowser to "execute" this javascript.
 
G

Guest

I was assuming that you can manipulate the Document through C# programming
but, not knowing much of javascript, didn't realize about that. I'm guessing
that javascripting might be the best solution to document manipulations like
this. Thanks Wilco!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top