B
bert
I am writing my first windows form application to be used to test
database performance. I am using a multi-line textbox control to give
the user feedback of what is being processed. This is the code I am
using to add
xtQueryStatus.Text += "New Data";
txtQueryStatus.Text += System.Environment.NewLine;
When the box becomes filled up I would like the text box to scroll.
The textbox has 8 lines so I would like it to display the last eight
lines.
I looked at the docs and looked at the ScrollToCaret. So I need to set
the Caret to 8 lines from the end and call the ScrollToCaret method.
but I do not know how to set the Caret position.
Thanks
Bert
database performance. I am using a multi-line textbox control to give
the user feedback of what is being processed. This is the code I am
using to add
xtQueryStatus.Text += "New Data";
txtQueryStatus.Text += System.Environment.NewLine;
When the box becomes filled up I would like the text box to scroll.
The textbox has 8 lines so I would like it to display the last eight
lines.
I looked at the docs and looked at the ScrollToCaret. So I need to set
the Caret to 8 lines from the end and call the ScrollToCaret method.
but I do not know how to set the Caret position.
Thanks
Bert