Re: How to Scroll Bottom of RichTextbox into View
From: Herfried K. Wagner [MVP] (hirf-spam-me-here_at_gmx.at)
Date: 03/13/04
- Next message: Klaus Löffelmann: "Re: Navigating Forms"
- Previous message: Herfried K. Wagner [MVP]: "Re: help!"
- In reply to: Charles Law: "How to Scroll Bottom of RichTextbox into View"
- Next in thread: Charles Law: "Re: How to Scroll Bottom of RichTextbox into View"
- Reply: Charles Law: "Re: How to Scroll Bottom of RichTextbox into View"
- Messages sorted by: [ date ] [ thread ]
Date: 13 Mar 2004 20:02:15 +0100
* "Charles Law" <blank@nowhere.com> scripsit:
> I have a RichTextbox to which I append text. It is not very tall, so it gets
> a scroll bar quite quickly.
>
> When the text is appended, I want the appended text to be visible, but try
> as I might, I cannot find a way of programmatically scrolling the control so
> that the text at the bottom is visible.
Select the portion of text by calling the overloaded version of the
control's 'Select' method, then call its 'Focus' method followed by a
call to its 'ScrollToCaret' method.
-- Herfried K. Wagner [MVP] <http://dotnet.mvps.org/>
- Next message: Klaus Löffelmann: "Re: Navigating Forms"
- Previous message: Herfried K. Wagner [MVP]: "Re: help!"
- In reply to: Charles Law: "How to Scroll Bottom of RichTextbox into View"
- Next in thread: Charles Law: "Re: How to Scroll Bottom of RichTextbox into View"
- Reply: Charles Law: "Re: How to Scroll Bottom of RichTextbox into View"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|