CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Mar 2000
    Location
    LA, CA
    Posts
    10

    multi-line textbox

    I have a question.....

    i have a multi-line textbox with verticle scroll bar,
    i added a string (from records) on each line of the textbox and the end with vbCrLf to go to next line.

    text1 = text1 & vbcrlf


    the problem is the scroller bar won't automatically go down to show the last record. i have to scroll it manually to the bottom of the textbox.

    how can i make the scroll bar automatically scroll down and show the last record when the viewable size of the textbox is not tall enough.

    thank you for your attention!!

    chi-Bang!


  2. #2
    Join Date
    Nov 1999
    Location
    US NJ
    Posts
    113

    Re: multi-line textbox

    Try to use the follawing...

    Text1.SelStart = Len(Text1.Text)

    you must use this at the end


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