Click to See Complete Forum and Search --> : scrolling
markman
May 24th, 2001, 03:09 PM
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?
Megatron
May 24th, 2001, 04:35 PM
How about:
rtb2.SelStart = rtb1.SelStart
markman
May 24th, 2001, 04:42 PM
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
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.