Futronics Developer
2008-04-07 10:46:00 UTC
I'm trying to do my own scrolling with the WebBrowser control.
I can use the WebBrowser.Document.Window.ScrollTo method to scroll to a
specific position but how do I get my current position?
I can keep my own scroll position, I know when the document loads that I'm
at scroll position 0,0. Then each time I scroll (by 200 for example) I just
keep a record of my new scroll position.
This works until I get to the end of the document. The ScrollTo doesn't
return any feedback when it gets to the end of the document, so I don't know
when stop scrolling and when to stop adding 200 to my internal scroll
position.
Is there a way to read the current scroll position?
I can use the WebBrowser.Document.Window.ScrollTo method to scroll to a
specific position but how do I get my current position?
I can keep my own scroll position, I know when the document loads that I'm
at scroll position 0,0. Then each time I scroll (by 200 for example) I just
keep a record of my new scroll position.
This works until I get to the end of the document. The ScrollTo doesn't
return any feedback when it gets to the end of the document, so I don't know
when stop scrolling and when to stop adding 200 to my internal scroll
position.
Is there a way to read the current scroll position?