Results 1 to 5 of 5

Thread: Simple Scroll Bar question...

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39

    Arrow


    Hello,
    I am wondering if there is a way to reverse a vertical scroll bar to go down to up instead up to down.
    Example- In mIRc chat rooms, when a user types something in a room the scroll bar is set allthe way down in the textbox instead of at the top.

    I'm asking this because I am trying to make something similiar to that. I am using a richtextbox, but when I input lines the the scroll bar stays at the top while text is still being entered and I have to manually scroll down.
    Sorry if this isnt making much sense.

    Any help would be appreciated.


  2. #2
    Fanatic Member
    Join Date
    Feb 2000
    Location
    The Netherlands
    Posts
    715
    Try setting the Scrollbars property of the RichTextBox.
    Oetje
    [email protected]
    93606776
    Visual Basic 6, Windows 2000

    Never pet a burning dog

  3. #3

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39

    ?

    Scroll Bar Properties

    The only properties I know of or see are.

    RichTextBox1.scrollbars = rtfboth, rtfvertical, rtfhorizontal, rtfnone.

    That is all.

    Any other things im misssing?

  4. #4
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    [code]
    Private Sub RichTextBox1_GotFocus()
    RichTextBox1.SelStart = Len(RichTextBox1.Text)
    End Sub
    [code]
    "A myth is not the succession of individual images,
    but an integerated meaningful entity,
    reflecting a distinct aspect of the real world."

    ___ Adolf Jensen

  5. #5

    Thread Starter
    Member
    Join Date
    Oct 2000
    Posts
    39

    Smile

    HeSaidJoe,


    Thanks alot for that code. It works great.




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