Note that there are some explanatory texts on larger screens.

plurals
  1. POVB.NET - Scroll to bottom of WebBrowser Control after DocumentText Update
    primarykey
    data
    text
    <p>So i have looked at several other posts on stackoverflow and none of them seem to be working for me to accomplish this. All I want to do is for the WebBrowser control to automatically scroll down to the very bottom after I change something programmatically in the webbrowser1.documenttext property.</p> <p>I've tried ALL of the following ways, and none of them work... I actually have them literally all in the exact same line of code.</p> <pre><code> WebBrowser1.ScrollBarsEnabled = True WebBrowser1.Document.Body.ScrollIntoView(False) WebBrowser1.Document.Window.ScrollTo(New Point(WebBrowser1.Height, WebBrowser1.Height)) WebBrowser1.Document.Window.ScrollTo(WebBrowser1.Height, WebBrowser1.Height) WebBrowser1.AutoScrollOffset = New Point(WebBrowser1.Height, WebBrowser1.Height) </code></pre> <p>In my WebBrowser1 control all I have done is set started it with and then at the end placed and in the middle all i've done is copied 'n pasted the following...</p> <pre><code> &lt;html&gt;&lt;body&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;div style="color: red;"&gt;blah blah&lt;/div&gt;&lt;Br /&gt; &lt;/body&gt;&lt;/html&gt; </code></pre> <p>about 30 times... BUT I can't get anything to work. None of the code above is doing anything.</p> <p>What am I missing?</p> <p>VS 2005 SP1 - VB.NET</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload