WebBrowser Scroll Position



I'm using a WebBrowser in my app, and the content needs to be updated
frequently (the content is generated by my app).
I do not want to lose the scroll position after each update since this is
annoying for the user.
Therefore I'm looking for a way to determine the current scroll position
before updating, since I can easily move the WebBrowser to the desired
scroll position after the update by calling
WebBrowser.Document.Window.ScrollTo(0, iOldValue).

Any help is greatly appreciated,
Thomas


.



Relevant Pages

  • Taewon Lee, links to a good code base that does what you want
    ... Adjust security for C# App hosting WebBrowser ... .NET Windows Forms Application WebBrowser Written in C#. ... Here is a description of the app so far... ... Surpress Script Errors and log the Time, FileName, LineNumber, and Error ...
    (microsoft.public.inetsdk.programming.webbrowser_ctl)
  • Re: AxShDocVw and DragOver
    ... In my app, if I drag plain text over the webbrowser ... control that is wrapped by my user control, ...
    (microsoft.public.dotnet.framework.windowsforms.controls)
  • drag image URL from webbrowser
    ... I want to drag images from my webbrowser to a TImage in my app and in the ... process capture the image's URL (not necessarily the same as the page's ...
    (comp.lang.pascal.delphi.misc)
  • WebBrowser problem..
    ... I'm building an app that automaticly fills in info in a webform I have, ... The WebBrowser starts at a given URL. ... code fills out the login form, ... When the popup opens, ...
    (microsoft.public.vb.general.discussion)