Windows Develop Bookmark and Share   
 index > Windows Forms General > richtextbox scroll
 

richtextbox scroll

I have a richtextbox control that scrolls to the end whenever text is appended using Select(richtextbox.textlength, 0) and ScrollToCaret(). The richtextboxis placed on several tabpages to implement chatting functionality. Let's say that page B's richtextboxappends text while I am on page A. If I switch to page B then page B's richtextbox only shows the last line of text up at the TOP. I really want the last line of text to appear at the BOTTOM of the richtextbox.
Michael Henderson  Thursday, January 26, 2006 7:03 AM

There's an alternative way to scroll all the way down using interop. You can extract it from the code in this post.

Use GetScrollInfo and then use SendMessage to send a WM_VSCROLL message.

Jelle van der Beek2  Thursday, January 26, 2006 7:14 AM

There's an alternative way to scroll all the way down using interop. You can extract it from the code in this post.

Use GetScrollInfo and then use SendMessage to send a WM_VSCROLL message.

Jelle van der Beek2  Thursday, January 26, 2006 7:14 AM
Have you experienced the case where only the last line of text is shown? I'm not sure what causes this.
Michael Henderson  Thursday, January 26, 2006 7:29 AM

You can use google to search for other answers

Custom Search

More Threads

• Trigger an event inside a property
• fixed row datagridview
• TreeView Expand Button
• Send keystroke to another application
• forcing a network connection
• Please help--brain can't see obvious
• BUG - UserControl TableLayoutPanel and TextBox on Vista
• invalid operation exception
• How to draw grid using grapgics?
• How 2 prevent a form resize when double clicking its title bar ?