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?