int pos1 = GetScrollPos(richTextBox1.Handle, 1); //垂直滚动条位置
SetScrollPos(richTextBox2.Handle, 1, pos1,True)