How can I scroll down the scroll bar in WebBrowser
component in c#?
I tried the following code , but it doesn't did the job:
webBrowser2.Focus();
webBrowser2.Document.Body.ScrollIntoView(false);
How can I scroll down the scroll bar in WebBrowser
component in c#?
I tried the following code , but it doesn't did the job:
webBrowser2.Focus();
webBrowser2.Document.Body.ScrollIntoView(false);
To scroll to a specific location, you can use
WebBrowser.Document.Window.ScrollTo(x,y)
method. For example to scroll down to the end of body:To scroll to a specific element, you can use
ScrollIntoView
method.