hi,
i am showing two different files in two different RichTextBoxes.I highlighted the difference between the two files.but now when the user Presses F4 i have to scroll directly to the highlighted text..and one more thing is it possibleto Scroll two rich Text boxes at the same time.
Thanks in advance,
sastry
Mike GoldRank #50 · 30.6K pointsPosted Aug 1, 2007, 10:22 AM EDT
1. use KeyPress and KeyDown event handlers to handle f4.
2. To Scroll to an item in a rich text box, first select it, then use ScrollToCaret
richTextBox1.Select(index, 0);
richTextBox1.ScrollToCaret();
sastry6 pointsPosted Aug 2, 2007, 2:29 AM EDT
hi thanks mike,
i got the code...for moving two scroll bars at the same time ...i gone to one rich text box VScroll event and in that i did my coding...one more time thanks for your support
regards,
sastry