Solved

How to make Rich Text Box auto-scroll to bottom

Posted on 2000-04-05
3
280 Views
Last Modified: 2008-02-26
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./??
0
Comment
Question by:a6106a
3 Comments
 
LVL 12

Accepted Solution

by:
mark2150 earned 50 total points
Comment Utility
change the .selstart location to len(rtb1.text)

M
0
 
LVL 32

Expert Comment

by:Erick37
Comment Utility
Private Sub Command1_Click()
    RichTextBox1.LoadFile "c:\bootlog.txt", rtfText
    RichTextBox1.SelStart = Len(RichTextBox1.Text)
End Sub
0
 

Author Comment

by:a6106a
Comment Utility
mark2150 had it first. Thanks guys
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now