G
Guest
I'm writing a simple debug console application that displays debug messages in a seperate application
The app contains a RichTextBox control to display the text. Vertical scrolling is on. After adding text to the control, I set the text selection to be the last character of the text so that the control will scroll to always display the new text at the bottom of the control
Problem is, the textbox doesn't scroll to the bottom while the console is not the foreground application. New text will be drawn when added (if it's already visible) and the scrollbar updates to show that there's more text in the control. When I bring the console forward, it THEN scrolls to the bottom of the text
I've tried calling textbox.ScrollToCaret(), textbox.Refresh(), and textbox.Update(). None of these help
Can anybody tell me how to get my TextBox control to scroll while in the background
TIA
Steve Johnso
Paris Developmen
The app contains a RichTextBox control to display the text. Vertical scrolling is on. After adding text to the control, I set the text selection to be the last character of the text so that the control will scroll to always display the new text at the bottom of the control
Problem is, the textbox doesn't scroll to the bottom while the console is not the foreground application. New text will be drawn when added (if it's already visible) and the scrollbar updates to show that there's more text in the control. When I bring the console forward, it THEN scrolls to the bottom of the text
I've tried calling textbox.ScrollToCaret(), textbox.Refresh(), and textbox.Update(). None of these help
Can anybody tell me how to get my TextBox control to scroll while in the background
TIA
Steve Johnso
Paris Developmen