The document page gets longer and longer but the webbrowser's vertical scrollbar is always at the top. How can I make it always at the bottom?
Printable View
The document page gets longer and longer but the webbrowser's vertical scrollbar is always at the top. How can I make it always at the bottom?
Found this in my code bank...
Code:' how to scroll Webbrowser control
Private Sub Command2_Click()
Dim MaxScrollY As Long
Dim MaxScrollX As Long
MaxScrollY = WebBrowser1.Document.body.scrollHeight
MaxScrollX = WebBrowser1.Document.body.scrollWidth
' example: scroll VERT and HORIZ bars to max positions.
WebBrowser1.Document.parentWindow.scrollTo MaxScrollX, MaxScrollY
End Sub
Works great! Thanks a zillion