473,473 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

How to turn off Auto-scrolling in a RichTextBox

The following code works fine in a TextBox for auto-scrolling:

If AutoScroll = True Then
txtChat.Select(txtChat.Text.Length, 0)
txtChat.ScrollToCaret()
End If

If I set AutoScroll to True then when text is appended to the TextBox, it
scrolls down to show it if necessary. When I set AutoScroll to false, it
doesn't scroll, allowing me to read whatever is currently visible.

With a RichTextBox, it seems to scroll down to the last text appended
regardless, even if I comment out the block of code above. What gives?

Can I make the RTB not scroll when text is appended?
Jan 13 '06 #1
0 1347

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

43
by: dan baker | last post by:
I have a page that gets loaded with a meta-refresh hardcoded so that a few things on the page get updated. its kind of a fake chat board. anyway, what I need to do is turn off the meta-refresh once...
9
by: One Handed Man [ OHM# ] | last post by:
Someone must know how to do this ? I'm stuck on something stupid. I thought this code would generate events in the windows event log under the Superanuation Log heading. However, it does not. I...
1
by: Qwert | last post by:
Hello, when a NumericUpDown control has the focus, the mousewheel increases/decreases its value. How does one prevent this from happening? How does one turn off its mousewheel event? Thanks.
4
by: Thirsty Traveler | last post by:
I installed an eval copy of JetBrain's "ReSharper" that has since expired. After uninstalling the eval version, my intellisense no longer seems to be working. I am thinking it was replaced by...
0
by: WebBuilder451 | last post by:
I still get some auto setting of cell widths in tables (and other items) with vs 2005. Is there a setting that needs to be set to turn it off completely? -- thanks (as always) some day i''m...
4
by: no_spam_for_gman | last post by:
Hi, I can turn off autocommit within the command window but I cannot figure out how to turn it off when you are in the IBM DB2 Command Line Processor. Does anybody knows how? By the way I mean...
4
by: Sofianos George | last post by:
How can i turn off auto arrange icons?
1
by: paulys72 | last post by:
I have a form which allocates an "auto number" to each new record. I would like to know how I can enter the form and browse through old/existing records without having to press escape to bypass the...
13
by: Cross | last post by:
I am developing an application that will show movies. When you wach a movie, you do not want the Power Option "Turn off monitor" to be anabled. Is there anyway to fix this from VB.net? (note that I...
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...
1
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.