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

scrollable log window that needs to scroll with the new text

P: n/a
Hi I'm trying to create a log window that keeps the user informed with misc
messages. Right now I'm using a richtextbox (tried a regular textbox as
well) that has a scrollbar and I append text to the end of it:

rtbLog.AppendText(vbCrLf & msg)

This works ok, but after the textbox fills and the scrollbars are presented,
the textbox doesn't automatically scroll with the new text. The user has to
manually scroll every time new text is appended to the textbox. This won't
work, because I have text appending every second or so.

Anybody know how to make this textbox autoscroll with appending text, or
perhaps a better control to use as my log window??
Nov 21 '05 #1
Share this Question
Share on Google+
2 Replies

P: n/a
"Mark Denardo" <ma*********@runbox.com> schrieb:
Anybody know how to make this textbox autoscroll with appending text, or
perhaps a better control to use as my log window??


Adding a line to a richtextbox 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://classicvb.org/petition/>

Nov 21 '05 #2

P: n/a
Thanks, it works perfect now!

"Herfried K. Wagner [MVP]" <hi***************@gmx.at> wrote in message
news:OM*************@TK2MSFTNGP14.phx.gbl...
"Mark Denardo" <ma*********@runbox.com> schrieb:
Anybody know how to make this textbox autoscroll with appending text, or
perhaps a better control to use as my log window??


Adding a line to a richtextbox 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://classicvb.org/petition/>

Nov 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.