scrollable log window that needs to scroll with the new text

M

Mark Denardo

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??
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top