Results 1 to 3 of 3

Thread: VScroll RTB

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    I am adding a chat box to a program and trying to use
    Code:
    SendMessage rtbChat.hwnd, WM_VSCROLL, SB_BOTTOM, 0
    to scroll to the bottom of the box after adding the new line of text. Problem: The text disappears until I click on the vscroll bar in the rtb. Solutions?
    VB 6.0 Pro | VC++ 6.0

  2. #2
    Guest
    Try this:

    Code:
    Private Sub rtbChat_Change()
    rtbChat.SelStart = Len(rtbChat.Text)
    End Sub

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    82
    Thanks Matt.
    Out of curiosity , anyone know why the sendmessage doesn't work?
    VB 6.0 Pro | VC++ 6.0

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