Vertical Scroll
I have a communication program using the SerialPort control. The application
performs the serial read in sPort_DataReceived thread and data is displayed
in a RichTextBox using the callback/invoke routine. The Vertical control
scroll bar is enabled so the user can scroll up and down to see the data
that has scrolled.
As data is comming, the Vertical scroll bar jumps to the top. I would like
to see the Vertical scroll bar position itself on the last line or the
bottom of the RichTextBox. Is there a way to do setting this?
Regards,
Sean
Supplemental Toolkit
Date:Sun, 19 Aug 2007 23:57:02 -0700
Author:
|
Re: Vertical Scroll
Solution for any one interested:
Adding a line to a richtextbox control and scrolling it into view
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=richtextboxscrolltobottom&lang=en>
--
Regards,
Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
Sean,
"Sean Liming (MVP)" schrieb:
> As data is comming, the Vertical scroll bar jumps to the top. I would
> like
> to see the Vertical scroll bar position itself on the last line or the
> bottom of the RichTextBox. Is there a way to do setting this?
Adding a line to a richtextbox control and scrolling it into view
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=richtextboxscrolltobottom&lang=en>
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>
"Sean Liming (MVP)" wrote in message
news:%23L$CUdv4HHA.5164@TK2MSFTNGP05.phx.gbl...
>
> I have a communication program using the SerialPort control. The
> application performs the serial read in sPort_DataReceived thread and data
> is displayed in a RichTextBox using the callback/invoke routine. The
> Vertical control scroll bar is enabled so the user can scroll up and down
> to see the data that has scrolled.
>
> As data is comming, the Vertical scroll bar jumps to the top. I would
> like to see the Vertical scroll bar position itself on the last line or
> the bottom of the RichTextBox. Is there a way to do setting this?
>
> Regards,
>
> Sean
> Supplemental Toolkit
Date:Wed, 22 Aug 2007 21:15:51 -0700
Author:
|