CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: TextBox Focus

  1. #1
    Join Date
    Apr 2001
    Posts
    4

    TextBox Focus

    I have a text box with a vertical scroll bar. When the text in the box becomes long enough that you have to use the scrollbar, it automatically focuses on the top of the box, not on the bottom where the new text is. Can someone tell me how to have it focus on the bottom?


  2. #2
    Join Date
    Mar 1999
    Location
    Nepal
    Posts
    540

    Re: TextBox Focus

    text1.selstart = len(text1.text)


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

Featured