By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,967 Members | 2,211 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,967 IT Pros & Developers. It's quick & easy.

richtextbox's scroll bar

P: n/a
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
Nov 11 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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"
http://msdn.microsoft.com/library/de...wm_vscroll.asp

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" <do********@discussions.microsoft.comwrote in message
news:F1**********************************@microsof t.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

Nov 11 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.