PDA

Click to See Complete Forum and Search --> : RichTextBox


jtaylorlb
Dec 13th, 1999, 07:16 AM
I am trying to do a fairly simple task with a rich text box which I can't seem to get to work.

I have a multi-lined rich text box on my form and I am adding text to the bottom of it. What I am trying to do is make the program automaticly scroll to the bottom when new items are added. (This is a locked text box and the only thing that adds to the box is my applications.) The users of my program find it annoying to have to scroll down themselves, especially do to the nature of my program. Any suggestions?
Thanks!

Serge
Dec 13th, 1999, 05:46 PM
It is very simple to achieve what you want. Just use this expression an any event:

RichTextBox1.SelStart = Len(RichTextBox1.Text)



------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)

jtaylorlb
Dec 14th, 1999, 04:20 AM
Thanks for the help! It worked!