2

I can set the scroll position:

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

But how can i get it?

Pomster
  • 14,567
  • 55
  • 128
  • 204

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,924
  • 2
  • 25
  • 47
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,857
  • 2
  • 31
  • 36