I can't use ScrollToCaret to move

Polas5

Member
Joined
Jul 23, 2011
Messages
14
Location
Alytus, Lithuania
Programming Experience
Beginner
Hi everyone.The problem is that i can't use cursor to move text in richtextbox using scrolltocaret.
Here the code for so far i have.


VB.NET:
 Dim length As Integer = rtf.Text.Length
        rtf.[Select](length, 0)
        rtf.ScrollToCaret()


The scroll goes to the bottom correct and back but the problem it can't move text.


If try move text down to the bottom the cursor lost its selection text.
How to fix the problem I'm using vb.net.
 
Your question doesn't really make sense. ScrollToCaret just scrolls to the caret. It doesn't move text so the fact that you can't move text with it is not surprising.
 
Back
Top