How to make Rich Text Box auto-scroll to bottom

I have a Rich Text Box on a form.
I have a REFRESH button that does RichTextBox1.FileName = "r:\user\general\urlloc\urlloc3.txt"
It refreshes, but always leaves me at the TOP of the file. I want it to put me at the end./??
a6106aAsked:
Who is Participating?
 
mark2150Connect With a Mentor Commented:
change the .selstart location to len(rtb1.text)

M
0
 
Erick37Commented:
Private Sub Command1_Click()
    RichTextBox1.LoadFile "c:\bootlog.txt", rtfText
    RichTextBox1.SelStart = Len(RichTextBox1.Text)
End Sub
0
 
a6106aAuthor Commented:
mark2150 had it first. Thanks guys
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.