I can set the scroll position:
webCompareSQL.Document.Window.ScrollTo(0,0);
But how can i get it?
The following link is similar to your question.
How to retrieve the scrollbar position of the webbrowser control in .NET
Hope this helps.
The answer is on that page Gaz mentioned.
Here is the MSDN documentation on it.
why doesn't ...
int top = webCompareSQL.Document.GetElementsByTagName("HTML")[0].ScrollTop;
work?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.