Results 1 to 3 of 3

Thread: RichTextBox

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Socal, USA
    Posts
    25

    Post

    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!

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744

    Post

    It is very simple to achieve what you want. Just use this expression an any event:

    RichTextBox1.SelStart = Len(RichTextBox1.Text)



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

    Serge

    Software Developer
    [email protected]
    [email protected]
    ICQ#: 51055819


  3. #3

    Thread Starter
    Junior Member
    Join Date
    Nov 1999
    Location
    Socal, USA
    Posts
    25

    Post

    Thanks for the help! It worked!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width