473,397 Members | 1,972 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,397 software developers and data experts.

How to Turn of Auto Scrolling

Al
Hello,
How can I turn off auto scrolling in RIchTextBox?
Thanks
Nov 21 '05 #1
3 1722
In the RichTextBox Properties window, there is a setting called
ScrollBars,,,,,,,,,,set it to: NONE.
Or set it in code.
james

"Al" <Al@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
Hello,
How can I turn off auto scrolling in RIchTextBox?
Thanks

Nov 21 '05 #2
Al
Thanks James but it still scroll .

"james" wrote:
In the RichTextBox Properties window, there is a setting called
ScrollBars,,,,,,,,,,set it to: NONE.
Or set it in code.
james

"Al" <Al@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
Hello,
How can I turn off auto scrolling in RIchTextBox?
Thanks


Nov 21 '05 #3
Yep, you are right, you have to set it in code like this:

Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles MyBase.Load

RichTextBox1.ScrollBars = RichTextBoxScrollBars.None

End Sub
Tested and works. What happens then is you can add all the text you want,
but no scrollbars ever appear. Of course if your textbox is smaller than the
amount of text that is entered, then your user will not see all of it.
james

"Al" <Al@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Thanks James but it still scroll .

"james" wrote:
In the RichTextBox Properties window, there is a setting called
ScrollBars,,,,,,,,,,set it to: NONE.
Or set it in code.
james

"Al" <Al@discussions.microsoft.com> wrote in message
news:6F**********************************@microsof t.com...
> Hello,
> How can I turn off auto scrolling in RIchTextBox?
> Thanks


Nov 21 '05 #4

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

Similar topics

0
by: 23s | last post by:
Is there any way I can send a vertical value to a form's scroll position? I have a full-screen form that, at launch, contains an empty tab sheet. At run time, the user can dynamically append a...
0
by: Eric | last post by:
Is there a way to turn off horizontal scrolling while leaving vertical scrolling for a TableLayoutPanel.
0
by: Terry Olsen | last post by:
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...
4
by: reycri | last post by:
I have a page that works as I intend in IE but not in Firefox: <html> <head> <title>Overflow Test</title> </head> <body style='overflow:hidden; margin:0; padding:0;'> <table border='0'...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...
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,...

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.