T
Tod Johnson
Hello,
have found that TextBox control always resets the vertical scrollbar
position to the beginning in the Multiline mode. When I try to call
"ScrollToCaret" there is really visible flickers. Are there
workaround? I'd like just to set text for the TextBox and stay on the
last position.
....
tbConsole.AcceptsReturn = true;
tbConsole.AcceptsTab = true;
tbConsole.Multiline = true;
....
void PutNewText(string t)
{
tbConsole.SelectionStart = tbConsole.Text.Length;
tbConsole.SelectionLength = t.Length;
tbConsole.SelectedText = t;
}
Thanks,
Tod
have found that TextBox control always resets the vertical scrollbar
position to the beginning in the Multiline mode. When I try to call
"ScrollToCaret" there is really visible flickers. Are there
workaround? I'd like just to set text for the TextBox and stay on the
last position.
....
tbConsole.AcceptsReturn = true;
tbConsole.AcceptsTab = true;
tbConsole.Multiline = true;
....
void PutNewText(string t)
{
tbConsole.SelectionStart = tbConsole.Text.Length;
tbConsole.SelectionLength = t.Length;
tbConsole.SelectedText = t;
}
Thanks,
Tod