-
scrolling
Using sendMessage and all that stuff, I want to have 2 identical richtextboxes (rtb1 and rtb2) I would type where I want to go in rtb1, click command1, and rtb2 would scroll to where rtb1 is scrolled to. Say I was typing in line 235 in rtb1. I would hit command1 and rtb2 should scroll to line 235. Any ideas how?
-
How about:
Code:
rtb2.SelStart = rtb1.SelStart
-
The text of the 2 rtb's is different. Im planning on one having numbers consecutively ordered followed by a vbCrLf. The other one is for you to type into. So when you hit command1, the numbers of the rtb2 will line up with the line numbers of rtb1. So what you said wont work