2

I can set the scroll position:

webCompareSQL.Document.Window.ScrollTo(0,0);

But how can i get it?

Pomster
  • 13,638
  • 55
  • 124
  • 200

2 Answers2

1

The following link is similar to your question.

How to retrieve the scrollbar position of the webbrowser control in .NET

Hope this helps.

Community
  • 1
  • 1
Gaz Winter
  • 2,839
  • 2
  • 24
  • 46
0

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?

corn3lius
  • 4,714
  • 2
  • 30
  • 35