I was searching long for to scroll webbrowser control to bottom or at specific point in Windows application. There where many solutions given but none was working. Specially if doctype is mentioned WebBrowserControl.Document.Body.ScrollTop = will not work. So I found a work around and it works 100%.
Solution:
WebBrowserControl.navigate("javascript:window.scroll(0,3050);");
You can change 3050 to the position you want. I used 3050 to scroll it to bottom.
Hope this help many people searching for solution.
Cheers
~ Upendra Kolte
www.ingenioustech.co.in
Thursday, March 4, 2010
Subscribe to:
Post Comments (Atom)
Great thinking. Really helped me.
ReplyDeleteThanks !
Abi
Thank you, finally a working solution!
ReplyDeleteThis works, 100% !!!
ReplyDeleteThanks guys for your comments
ReplyDeleteSweet! The code just works, period.
ReplyDeleteThanks buddy
ReplyDeletethank you sooooooooo muuuuuuuuuch i was really searching for it for a long time ^^ thanks again
ReplyDeletePeace & love