RichTextBox, ScrollToCarret, No Focus?

J

Jean-Francois Lord

Hello,

I have a multithreaded windows app that has a RichTextBox acting as an
output console for the worker threads. I need a way of scrolling down to the
bottom of the RichTextBox as text is added without stealing the focus from
my other controls.

RichTextBox.Focus()
RichTextBox.ScrollToCarret()

This does not work for me since I have an axWebBrowser control and I cannot
restore the focus to it's child controls, i.e. it's text boxes.

Does anyone have a way of scrolling the RichTextBox without stealing the
focus?

Thanks,
Jean Lord
 

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

Members online

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top