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

Thread: scroll bar

  1. #1
    Guest

    scroll bar

    Hi:
    I created a text box with vertical scroll bar that displays curent data coming from a port. Once the information exceed the text box I no longer can see the last line unless I scroll down.
    I would like to always see the last data w/o scrolling down.
    I used the following command to diplay my data in the text box:
    Text3.Text = Text3.Text & point & vbCrLf

    Is there anyway I can do this w/o deleteing the previous data?
    Thanks.


  2. #2
    Join Date
    Oct 1999
    Location
    CA
    Posts
    91

    Re: scroll bar

    I'ed be interested in knowing the same. I hate that flicker you get when you use this method.

    BrewGuru99


  3. #3
    Join Date
    Oct 1999
    Location
    Seattle, Washington, USA
    Posts
    109

    Re: scroll bar

    I haven't tested it yet, but I would expect that

    Text1.SelStart = len(Text1.Text)


    would do what you want.

    This would place the cursor/insertion-point at the last character in the TextBox. I would still expect it to flicker, though- since the data is constantly being updated.


    - Shawn

  4. #4
    Join Date
    Sep 1999
    Posts
    202

    Re: scroll bar

    Text3.SelStart = len(Text3.Text)
    Text3.SelText = point & vbCrLf




  5. #5
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: scroll bar

    There are a couple of APIs that get/set the TopRow of the Multi-line text. Just look into MSDN. or look into articles section of this site.
    http://www.codeguru.com/vb

    RK

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