richtextbox's scroll bar

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dotnetnoob

    richtextbox's scroll bar

    i have a Dialog form with richtextbox that basically display a legal
    agreement and when the user drag the scroll thumb down to the end of
    scrolling which suppose to mean the user have read it then the checkbox is
    enabled for the user to tick off (I agree) and the next button is enabled for
    user to click next. the richtextbox vscroll event only fire when user click
    on the scrollthumb and that's it. how do i implement it when user drag the
    scrollthumb or use arrow key to scroll down then enable the checkbox.

    i have been searching high and low on the net without finding anything about
    how to enable this in richtextbox.

    thank you
  • Dave Sexton

    #2
    Re: richtextbox's scroll bar

    Hi,

    You can try checking for the WM_VSCROLL notification in the WndProc of the
    RichTextBox (you should derive your own control from RichTextBox to override
    WndProc)

    "WM_VSCROLL Notification"


    There are several Win32 API functions for scrolling that may help you to
    determine whether the scroll box is located at the bottom.

    --
    Dave Sexton

    "dotnetnoob " <dotnetnoob@dis cussions.micros oft.comwrote in message
    news:F1E6E1C1-D0D9-482B-9BFB-992F845AF021@mi crosoft.com...
    >i have a Dialog form with richtextbox that basically display a legal
    agreement and when the user drag the scroll thumb down to the end of
    scrolling which suppose to mean the user have read it then the checkbox is
    enabled for the user to tick off (I agree) and the next button is enabled
    for
    user to click next. the richtextbox vscroll event only fire when user click
    on the scrollthumb and that's it. how do i implement it when user drag the
    scrollthumb or use arrow key to scroll down then enable the checkbox.
    >
    i have been searching high and low on the net without finding anything about
    how to enable this in richtextbox.
    >
    thank you

    Comment

    Working...