Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / August 2005

Tip: Looking for answers? Try searching our database.

RichTextBox - how to disable AutoScroll on AppendText method

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mr.Cyber - 05 Aug 2005 21:35 GMT
Every time when I add text in my RichTextBox control via AppendText method -
the control
is autoscrolled to the end of text. I need avoid this effect. How can I do it?

Thanks in advance!

I'll very appreciate any ideas! :)
Lloyd Dupont - 06 Aug 2005 07:25 GMT
you could try this control.
http://pluralsight.com/wiki/default.aspx/Craig/RichTextBox2.html

haven't used it extensively yet, but it seems to provide many RichTextBoz
extension...

Signature

There are 10 kinds of people in this world. Those who understand binary and
those who don't.

>
> Every time when I add text in my RichTextBox control via AppendText
[quoted text clipped - 6 lines]
>
> I'll very appreciate any ideas! :)
Chris Badal - 10 Aug 2005 17:27 GMT
If you are having trouble with scrolling to the end of the text, you may try
something like:

int pos = richTextBox.SelectionStart;
richTextBox.AppendText(stuff);
richTextBox.SelectionStart=pos;
richTextBox.ScrollToCaret(); // try with and without this line

Note: when I just tried to append text to a RichTextBox, I did not see the
behavior that you mentioned. Are you calling ScrollToCaret() accidentally?

> Every time when I add text in my RichTextBox control via AppendText method -
> the control
[quoted text clipped - 3 lines]
>
> I'll very appreciate any ideas! :)

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.