J
Jeremy
I add lines to my textbox (WPF) showing the progress of processes. I'd like
the visible part to scroll so that the most recent line is always visible.
The following does not scroll, but it does refresh. Any ideas?
private void onProgress(string msg)
{
txtProgress.Text += msg + (char)13;
txtProgress.CaretIndex = txtProgress.Text.Length;
oSessionControl.doEvents();
}
doEvents is borrowed code that refreshes the screen.
the visible part to scroll so that the most recent line is always visible.
The following does not scroll, but it does refresh. Any ideas?
private void onProgress(string msg)
{
txtProgress.Text += msg + (char)13;
txtProgress.CaretIndex = txtProgress.Text.Length;
oSessionControl.doEvents();
}
doEvents is borrowed code that refreshes the screen.