By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

Vertical scroll bar

P: n/a
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
Aug 20 '07 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Sean,

"Sean Liming (MVP)" <se*********@sjjmicro.comschrieb:
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/>

Aug 22 '07 #2

P: n/a
Herfried,

I used the first solution with one tweak and it works great!

As a fellow MVP, I thanks you!

Regards,

Sean Liming
www.sjjmicro.com / www.seanliming.com
Book Author - XP Embedded Advanced, XP Embedded Supplemental Toolkit
"Herfried K. Wagner [MVP]" <hi***************@gmx.atwrote in message
news:%2****************@TK2MSFTNGP03.phx.gbl...
Sean,

"Sean Liming (MVP)" <se*********@sjjmicro.comschrieb:
>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/>
Aug 23 '07 #3

This discussion thread is closed

Replies have been disabled for this discussion.