TextBox Scrollbar. Scrolling to end of TextBox within Thread
<p>I've tried all the answers suggest in Stack Overflow to get my scrollbar to move to the bottom as text is being updated, but I have a feeling its not working because it's within a thread. My code is below ...</p>

<pre><code>foreach(HtmlAgilityPack.HtmlNode paginationUser in paginationUsers) {
                    String userUrl = paginationUser.GetAttributeValue("id","");
                    this.Invoke((MethodInvoker)delegate { 
                        txtLog.AppendText("...... Added " + userUrl + Environment.NewLine);
                        txtLog.Select(txtLog.Text.Length, 0);
                        txtLog.ScrollToCaret();

                    });
                }
</code></pre>

<p>Is it the thread thats causing the code not to work? And what's a better solution?</p>
