Results 1 to 3 of 3

Thread: textbox - automatically scroll to bottom

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Posts
    74

    textbox - automatically scroll to bottom

    I have the multiline property set to true, and the scrollbars set to both. I am using the textbox as a log, so I want it to scroll down automatically as the next line is being printed in the textbox. How do I do that?

    Thanks!

  2. #2
    Fanatic Member pax's Avatar
    Join Date
    Mar 2001
    Location
    Denmark
    Posts
    840
    Hi.

    Try this

    VB Code:
    1. TextBox1.SelectionStart = TextBox1.Text.Length
    2.         TextBox1.ScrollToCaret()
    I wish I could think of something witty to put in my sig...

    ...Currently using VS2013...

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2003
    Posts
    74
    Awesome! That did it! Thank you very much!

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