473,394 Members | 1,709 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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
Nov 11 '06 #1
1 2867
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: JRB | last post by:
I have a thread adding lines of text to a richtextbox on my windows form about every 1 second. I want the last line of text to always be visible, which it is until the box gets filled up. The last...
6
by: Rachel Suddeth | last post by:
I have the index of a line in the Lines array of a RichTextBox. I would like to have it scroll so that line displays at the top. Is there no way to do this? The only way I can see to make it...
3
by: Rachel Suddeth | last post by:
I want to react to scrolls in a RichTextBox (I want to let the user know when he has changed to a new printable page.) I have handled the VScroll() event, but that only responds to scrollbar...
4
by: One Handed Man | last post by:
Ive been working on this since yesterday and its bugging me. Although the event is firing, The box does not scroll. Can anyone see what Im doing wrong. I suspect it is stupidly simple. TIA
2
by: JonnyT | last post by:
I searched high and low for an answer on how to auto scroll a richtextbox and now I finally have it. Since it took me a while to get a good efficient way of doing it that didn't require focus to...
7
by: Richard | last post by:
When you give focus to a RichTextBox, then it goes to the textCursor, but i don't want to give the richtextbox focus, cause there is being written a lot in it, and I have to do something else at...
1
by: Daniel Friend | last post by:
How do I scroll to the bottom of RichTextBox Currently tried RichTextBox1.SelectionStart=len(RichTextBox1.text) RichTextBox1.ScrollToCaret This does not work. What is the best what to...
0
by: tcloud | last post by:
I have a RichTextBox that: - 1st would intermittently show the scroll bars but they wouldn't work - 2nd now doesn't allow any interaction even though it looks normal The application processes...
2
by: =?Utf-8?B?SmVzcGVyLCBEZW5tYXJr?= | last post by:
Hi, I have a somewhat long calculation report printed out in a RichTextBox. To find or monitor a particular value, users scroll down to the location of the data in the RichTextBox. However, when...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.