I'm using a WebBrowser object to display a webpage and I want to scroll the page down using VB.
For some webpages I can say WebBrowser1.Document.Body.scrollTop = 200 and it'll scroll down 200 pixels. However, on some webpages this does nothing even though the page is pretty long and could scroll down (eg scrollHeight returns 3000).
In these instances when I set scrollTop and then read scrollTop it's always zero.
Can anyone suggest a reason why the page might not scroll down?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
For some webpages I can say WebBrowser1.Document.Body.scrollTop = 200 and it'll scroll down 200 pixels. However, on some webpages this does nothing even though the page is pretty long and could scroll down (eg scrollHeight returns 3000).
In these instances when I set scrollTop and then read scrollTop it's always zero.
Can anyone suggest a reason why the page might not scroll down?
- Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments