Results 1 to 7 of 7

Thread: [RESOLVED] Text Box Scrolling

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    537

    Resolved [RESOLVED] Text Box Scrolling

    I have a textbox on my form, when I add text to it the scroll bars scroll back up to the top. How can I make them stay at the end, so the text box displays the newest text?

    Thank you,
    Sir Loin

  2. #2
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: Text Box Scrolling

    Use this:
    VB Code:
    1. text1.selstart = len(text1.text)

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    537

    Re: Text Box Scrolling

    I tried that, it made the caret go to the lowest part of the textbox, but it still didn't scroll down.

    EDIT: It works when I send text to the text box, but not when I first set the text in the textbox in the form's Load event.

    Thank you,
    Sir Loin

  4. #4
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: Text Box Scrolling

    Did you try putting that in the Form's Activate event instead of the Load event?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Mar 2005
    Posts
    537

    Re: Text Box Scrolling

    No! Darn! Thanks!

    -Sir Loin

  6. #6
    Next Of Kin baja_yu's Avatar
    Join Date
    Aug 2002
    Location
    /dev/root
    Posts
    5,989

    Re: [RESOLVED] Text Box Scrolling

    No problem

  7. #7
    Giants World Champs!!!! Mark Gambo's Avatar
    Join Date
    Sep 2003
    Location
    Colorado
    Posts
    2,965

    Re: [RESOLVED] Text Box Scrolling

    BTW baja_yu, nice avatar!!
    Regards,

    Mark

    Please remember to rate posts! Rate any post you find helpful. Use the link to the left - "Rate this Post". Please use [highlight='vb'] your code goes in here [/highlight] tags when posting code. When a question you asked has been resolved, please go to the top of the original post and click "Thread Tools" then select "Mark Thread Resolved."


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