Web Browser remove scrollbar and do autoscroll?

Craig

Well-known member
Joined
Oct 15, 2005
Messages
110
Location
United Kingdom
Programming Experience
Beginner
Ok I have a web browser on a windows form and theres a couple of things that i need to do but i don't know how.

I need to be able to remove the scrollbars from the page
and more importantly..
Once the data on the page is loaded, scroll to the bottom of the page
 
do it something like this for the AxWebBrowser:
VB.NET:
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, _
ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) _
Handles AxWebBrowser1.DocumentComplete
  If e.pDisp Is AxWebBrowser1.Application Then
    AxWebBrowser1.Document.parentWindow.scrollto(0, 99999999)
    AxWebBrowser1.Document.body.scroll = "no"
  End If
End Sub
 
It worked fine with both tweaks here.
 
Back
Top