c#: SetScrollPos (user32.dll)
<p>I want to have 2 (rich)texboxes (vc# 2k8) with same scrolling... so when I scroll tb1 the tb2 scrolls to the same position. I use this functions:</p>

<pre><code>[DllImport("user32.dll")]
static extern int SetScrollPos(IntPtr hWnd, int nBar, int nPos, bool bRedraw);

[DllImport("user32.dll")]
public static extern int GetScrollPos(IntPtr hwnd, int nBar);
</code></pre>

<p>That works fine but</p>

<pre><code>int pos = GetScrollPos(tb1.Handle, 1);
SetScrollPos(tb2.Handle, 1, pos, true);
</code></pre>

<p>only sets the scrollbar to the same position but down update the text in there.
tb2.Update() oder Refresh won't work...</p>

<p>Please help. Ty</p>
